mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kerenyi Gabor <wom@tateyama.hu>
To: sanket rathi <sanket@linuxmail.org>, linux-kernel@vger.kernel.org
Subject: Re: interrupt handler
Date: Fri, 23 Aug 2002 13:58:01 +0900	[thread overview]
Message-ID: <200208231207.VAA13142@cttsv008.ctt.ne.jp> (raw)

8/23/2002 8:58:20 PM, "sanket rathi" <sanket@linuxmail.org> wrote:

>hi,
>Can i use spin lock in the interrupt handler for a singlre processor machine. because books says u can not use locks 
>but spin lock is some thing diffrent 

Yes you can. Spinlocks will be compiled in if you choose SMP even on single processor machine.
But look at the documentation in the kernel source.
I think "lock" in your message is a semaphore in real life.

Spinlocks never sleep - they don't perform task switch and you can use them anywhere, while semaphores
can sleep and you can use them only in user context (not in interrupt or bottom half)

Gabor



             reply	other threads:[~2002-08-23 12:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-23  4:58 Kerenyi Gabor [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-04-15 10:02 Interrupt handler MNH
2004-04-17 18:57 ` Karim Yaghmour
2002-08-23 11:58 interrupt handler sanket rathi
2002-08-23 12:17 ` Richard B. Johnson
2002-08-23 16:17   ` Robert Love
2002-08-23 16:45     ` Richard B. Johnson
2002-08-23 16:52       ` Robert Love
2002-08-23 20:45         ` george anzinger
2002-08-23  6:22 Kerenyi Gabor
2002-08-23  5:45 Kerenyi Gabor
2002-08-23 13:07 ` Richard B. Johnson
2002-08-21 14:25 Interrupt Handler sanket rathi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200208231207.VAA13142@cttsv008.ctt.ne.jp \
    --to=wom@tateyama.hu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sanket@linuxmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®