Finding the interrupt vector of a given IRQ
richard -rw- weinberger
richard.weinberger at gmail.com
Sun May 27 17:27:04 EDT 2012
On Sun, May 27, 2012 at 2:02 AM, Mark Farnell <mark.farnell at gmail.com> wrote:
> In the kernel, how can I find out the interrupt vector number of a
> given IRQ (for example, IRQ7)?
>
> Within the kernel module, I would like to manually set the IRQ using
> the assembly code:
>
> asm("int $<irq vector>");
>
> and let the IRQ handler installed by a different module catch that interrupt.
>
> Is this possible?
No really because not all IRQ have an interrupt line to the CPU.
Linux can multiplex and emulate them. Think of GPIO drivers with
interrupt support.
Anyway, why to you think you need to trigger the raw IRQ manually?
This sounds really odd...
--
Thanks,
//richard
More information about the Kernelnewbies
mailing list