From mboxrd@z Thu Jan 1 00:00:00 1970 From: vishu.kernel@gmail.com (Vishwas Srivastava) Date: Sat, 26 Jul 2014 22:37:10 +0530 Subject: Kernelnewbies Digest, Vol 44, Issue 51 In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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