Kernelnewbies Digest, Vol 44, Issue 51
Vishwas Srivastava
vishu.kernel at gmail.com
Sat Jul 26 13:07:10 EDT 2014
Hi All,
I have a doubt regarding the threaded interrupt handing
mechanism.
what is the kernel context of execution while executing interrupt thread.
if i check for macro
in_irq() or in_interrupt() withing handler thread , my understanding is
that they both are going to return me 0 (since we are in kernel thread),
as threads runs in process context.
Also, since they are "kernel threads", they must be schedulable enteties.
what conceptually deviated me from my understanding is one of the driver
which had a threaded interrupt mechanism and when i checked
in_interrupt() macro, it returned me a non zero value so i am a bit
confused.
thanks in advance.
Vishwas S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140726/4b6fb106/attachment.html
More information about the Kernelnewbies
mailing list