Re: How to know which interrupt is executing

From: SAURABH MALPANI
Date: Fri Dec 17 2010 - 04:42:21 EST


On Fri, Dec 17, 2010 at 2:59 PM, SAURABH MALPANI
<saurabh140585@xxxxxxxxx> wrote:
>
> Hello,
> I am not subscribed to this list. So I request to reply to me directly.
> Based on what I looked into the code, the answer is no, but I believe there are many better people who can give an opinion.
> The kernel in_irq() macro returns if the kernel is in interrupt context. But there is no way of knowing which irq the code is running.
> It might seem an odd idea, but I am writing some code which maintains a data structure per irq. Right now I am managing by patching
> manually, but is there any way of getting the value of currently executing interrupt vector. In a generic way? or in a architecture specific way?
>
> --
> Saurabh



--
Saurabh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/