src/dpdk/drivers/bus/pci/linux/pci_vfio.c
int
pci_vfio_map_resource(struct rte_pci_device *dev)
{
	if (rte_eal_process_type() == RTE_PROC_PRIMARY)
		return pci_vfio_map_resource_primary(dev);
	else
		return pci_vfio_map_resource_secondary(dev);
}
/*
 * map the PCI resources of a PCI device in virtual memory (VFIO version).
 * primary and secondary processes follow almost exactly the same path
 */
map the PCI resources of a PCI device in virtual memory (VFIO version).
primary and secondary processes follow almost exactly the same path
map the PCI resources of a PCI device in virtual memory ( VFIO version ) . primary and secondary processes follow almost exactly the same path
int
pci_vfio_map_resource(struct rte_pci_device *dev)
{
	if (rte_eal_process_type() == RTE_PROC_PRIMARY)
		return pci_vfio_map_resource_primary(dev);
	else
		return pci_vfio_map_resource_secondary(dev);
}
int pci_vfio_map_resource ( struct rte_pci_device * dev ) { if ( rte_eal_process_type ( ) == RTE_PROC_PRIMARY ) return pci_vfio_map_resource_primary ( dev ) ; else return pci_vfio_map_resource_secondary ( dev ) ; }
map the PCI resources of a PCI device in virtual memory (VFIO version).
map the PCI resources of a PCI device in virtual memory ( VFIO version ) .