Re: Interrupt Handling in linux

From: Sylvain Munaut
Date: Fri Jul 09 2004 - 05:37:56 EST


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/