Messages in this thread |  | | Date | Tue, 10 Oct 2000 08:46:54 -0400 | From | Jeff Garzik <> | Subject | Re: getting "struct pci_dev" from "struct netdevice" |
| |
"Phillips, Mike" wrote: > > >> hi all, > >> given struct netdevice for any pci network device, is there any way to > get > >> corresponding > >> "struct pci_dev". > > > No. > > Not directly, but pci_dev knows about netdevice, so you can scan the > pci_dev's > to find a match with the required netdevice
Or really? Exactly how does one do this?
> (Or do a similar match search > on base_addr)
Doesn't work on 64-bit platforms, I don't think. Not all net drivers set base_address in any case.
Jeff - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |