Re: Re: switching to interrupt contex when no interrupts

arun4linux (arun4linux@indiatimes.com)
Sun, 24 Nov 2002 01:33:21 +0530


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:

&gt;
&gt;
&gt; I'd like to force my kernel module to run at interrupt context at some specific \
&gt;points/time and then come back from interrrupt contex after executing that particular \
&gt;portion of code..
&gt;
&gt;
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.

--
Manfred

Get 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/