pci <-> device node mapping
linas at austin.ibm.com
linas at austin.ibm.com
Tue Jun 24 05:25:29 EST 2003
On Mon, Jun 23, 2003 at 09:29:35AM -0500, Linda Xie wrote:
>
> Here is what I have in my driver code for getting pci_dev:
>
> if(dev && strstr(dev->dev.name, slot->name))
Yeah, but I don't think this will give you unique results. If you
have the bad luck to be looking for somethng like "P2" (which is the
isa bridge on my system) you will have lots of hits, since P2 occurs
in other strings as well. Or am I confused?
--linas
** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc64-dev
mailing list