Does pci driver functions represented as function number in PCI's driver_data object

风格不统一 提交于 2021-01-07 01:26:20

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!