lkml.org 
[lkml]   [2002]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Re: switching to interrupt contex when no interrupts
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:31    [W:0.030 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site