mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sylvain Munaut <tnt@246tnt.com>
To: Harish K Harshan <harish@amritapuri.amrita.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Interrupt Handling in linux
Date: Fri, 09 Jul 2004 12:34:13 +0200	[thread overview]
Message-ID: <40EE74A5.9030001@246tNt.com> (raw)
In-Reply-To: <40916.203.197.150.195.1089366068.squirrel@203.197.150.195>

Harish K Harshan wrote:

 > Hi.
 >
 > Can Interrupt handlers in linux, be interrupted by other running
 > processes??? to make it more clear, im developing a driver for and
 > ADC card, and would like to know if the CPU can or rather WILL
 > schedule wnother running process in the middle of the ISR, when a
 > timer interrupt comes in. If thats the case, then we need to use
 > spinlocks or other mechanisms in our ISR, right?? im new to this,
 > so if theres something not clear, it just just that my
 > understanding of this topic is not very deep.

If you share something between an ISR and a 'not' ISR, then you should
ensure proper locking.
Look at the "kernel-locking" DocBook in linux/Documentation/DocBook


Sylvain Munaut


  reply	other threads:[~2004-07-09 10:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-09  9:41 Harish K Harshan
2004-07-09 10:34 ` Sylvain Munaut [this message]
2004-07-09 12:18 ` Richard B. Johnson

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=40EE74A5.9030001@246tNt.com \
    --to=tnt@246tnt.com \
    --cc=harish@amritapuri.amrita.edu \
    --cc=linux-kernel@vger.kernel.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®