getting "struct pci_dev" from "struct netdevice"

getting "struct pci_dev" from "struct netdevice"

Post by Anil Prasa » Wed, 11 Oct 2000 04:00:00



hi,

i am writting a sort of generic pci driver.

my problem is that i have netdevice structure of a pci network card. i want
to obtain card's pci_dev structure in a kernel module. i could not find any
common field between these structures.only common member is irq which is of
no use as it can be used by more than one device.