Hello,
<<What do you want to do?
>>I want to simulate a PCI based controller and its behaviour, interrupts,etc..
I want to simulate the interrupts in sequence and want to process them in my driver software.
<<local_irq_save()/local_irq_restore() temporarily disable the interrupt
>>My requirement is to simulate interrupts and not to disable interrupts.
Thanks & Warm Regards
Arun
"Manfred Spraul" wrote:
>
>
> I'd like to force my kernel module to run at interrupt context at some specific \
>points/time and then come back from interrrupt contex after executing that particular \
>portion of code..
>
>
What do you want to do?
local_irq_save()/local_irq_restore() temporarily disable the interrupt
processing of the current cpu. Note that other cpus in the system
continue to handle interrupts.
disable_irq(x) disables the interrupt processing for the interrupt line x.
For example, my network drivers use disable_irq() to synchronize
interrupt processing and error recovery.
-- ManfredGet Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com
Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from http://www.planetm.co.in
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:43 EST