问题
Does Each PCI peripheral function (from Linux Device Driver -- Book Each PCI periphel is identified by a bus number, a device number, and a function number.
) specified as a pci driver data? (Question: is net_device a driver function in pci_dev as a network function) as assigning in
net_device dev
pci_dev pdev
....
....
pci_set_drvdata (pdev, dev);
the above code is present in Linux's RealTek Ethernet driver's pci device driver's probe function from https://github.com/torvalds/linux/blob/3516bd729358a2a9b090c1905bd2a3fa926e24c6/drivers/net/ethernet/realtek/8139too.c
来源:https://stackoverflow.com/questions/65576609/does-pci-driver-functions-represented-as-function-number-in-pcis-driver-data-ob