Skip to contentSkip to conversation

find struct pci_dev from struct net_device

DISCUSSION Sebastian Heidl 2 participants 2 messages Sep 12, 2001 – Sep 13, 2001

lore
Share & tools
lore
#0 lore raw

Hi,

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) ?

thanks,
_sh_

#1 lore raw

Sebastian Heidl <[email protected]> :

Quoted 4 lines

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 ?

Signature · 1 line
Ueimor