2002-11-23 19:53:40

by arun4linux

[permalink] [raw]
Subject: Re: Re: switching to interrupt contex when no interrupts

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