Re: [Q] How to find free IRQ line?

Richard B. Johnson (root@chaos.analogic.com)
Mon, 6 Dec 1999 10:00:48 -0500 (EST)


On Mon, 6 Dec 1999, Andrey Panin wrote:

> Hi all !!
>
> In this crazy world every programer can meet strange computer devices.
> These devices are software configurable, but not compatible with
> common configuration methods (like PCI or ISA PNP).
> Because of this strange design, the driver itself must find and assign
> resources for such device.
>
> So my question is: "What is most correct method to find free IRQ line ?"
>
> Thank you for future answers :)
>

request_irq(......);
If it returns -1, try another one. Works for me.
Even though you may acquire an IRQ, it does not mean that
the hardware is actually connected to it, so you have
to generate a hardware IRQ to see if it works. If not,
do free_irq(...) and try another one.

Cheers,
Dick Johnson

Penguin : Linux version 2.3.13 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

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