Re: Determining pci bus from irq

From: Alan Cox
Date: Tue Sep 09 2003 - 12:12:50 EST


On Maw, 2003-09-09 at 17:10, Adam Litke wrote:
> Is there a nice way to determine, given an irq number, the pci bus
> number that raised the interrupt?

In general the answer is you can't find out. PCI IRQ lines are shared.
You can certainly lock and walk the pci device list looking for matches
but you may get a lot of devices on different busses

-
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/