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

Function pci_vfio_map_resource

dpdk/drivers/bus/pci/linux/pci_vfio.c:1060–1067  ·  view source on GitHub ↗

* map the PCI resources of a PCI device in virtual memory (VFIO version). * primary and secondary processes follow almost exactly the same path */

Source from the content-addressed store, hash-verified

1058 * primary and secondary processes follow almost exactly the same path
1059 */
1060int
1061pci_vfio_map_resource(struct rte_pci_device *dev)
1062{
1063 if (rte_eal_process_type() == RTE_PROC_PRIMARY)
1064 return pci_vfio_map_resource_primary(dev);
1065 else
1066 return pci_vfio_map_resource_secondary(dev);
1067}
1068
1069static struct mapped_pci_resource *
1070find_and_unmap_vfio_resource(struct mapped_pci_res_list *vfio_res_list,

Callers 1

rte_pci_map_deviceFunction · 0.85

Calls 3

rte_eal_process_typeFunction · 0.85

Tested by

no test coverage detected