MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pci_common_set

Function pci_common_set

dpdk/drivers/bus/pci/pci_common.c:94–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void
95pci_common_set(struct rte_pci_device *dev)
96{
97 struct rte_devargs *devargs;
98
99 /* Each device has its internal, canonical name set. */
100 rte_pci_device_name(&dev->addr,
101 dev->name, sizeof(dev->name));
102 dev->device.name = dev->name;
103
104 devargs = pci_devargs_lookup(&dev->addr);
105 dev->device.devargs = devargs;
106
107 if (dev->bus_info != NULL ||
108 asprintf(&dev->bus_info, "vendor_id=%"PRIx16", device_id=%"PRIx16,
109 dev->id.vendor_id, dev->id.device_id) != -1)
110 dev->device.bus_info = dev->bus_info;
111}
112
113void
114pci_free(struct rte_pci_device_internal *pdev)

Callers 3

pci_scan_oneFunction · 0.85
pci_scan_oneFunction · 0.85
pci_scan_oneFunction · 0.85

Calls 3

rte_pci_device_nameFunction · 0.85
pci_devargs_lookupFunction · 0.85
asprintfFunction · 0.85

Tested by

no test coverage detected