Re: find struct pci_dev from struct net_device

From: Francois Romieu (romieu@cogenit.fr)
Date: Thu Sep 13 2001 - 07:10:24 EST


Sebastian Heidl <heidl@zib.de> :
> What's the easiest way to find a corresponding struct pci_dev from a
> struct net_device ? Especially, if the driver does not set
> pci_dev.driver_data to it's net_device struct (such as the acenic
> driver) ?

Forget it. It depends on the driver in both directions. How would it
handle a pci device with different L2 interfaces or a network adapter
with PCI bridge + various PCI devices behind the bridge ?

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



This archive was generated by hypermail 2b29 : Sat Sep 15 2001 - 21:00:40 EST