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

Function rte_eth_dev_allocated

dpdk/lib/ethdev/ethdev_driver.c:127–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127struct rte_eth_dev *
128rte_eth_dev_allocated(const char *name)
129{
130 struct rte_eth_dev *ethdev;
131
132 rte_spinlock_lock(rte_mcfg_ethdev_get_lock());
133
134 if (eth_dev_shared_data_prepare() != NULL)
135 ethdev = eth_dev_allocated(name);
136 else
137 ethdev = NULL;
138
139 rte_spinlock_unlock(rte_mcfg_ethdev_get_lock());
140
141 return ethdev;
142}
143
144/*
145 * Attach to a port already registered by the primary process, which

Callers 15

rte_eth_dev_destroyFunction · 0.85
rte_pmd_memif_removeFunction · 0.85
rte_pmd_ring_removeFunction · 0.85
virtio_user_pmd_removeFunction · 0.85
virtio_user_pmd_dma_mapFunction · 0.85
rte_pmd_null_removeFunction · 0.85
ipn3ke_vswitch_removeFunction · 0.85
eth_ionic_dev_removeFunction · 0.85
pmd_pfe_removeFunction · 0.85
eth_ngbe_pci_removeFunction · 0.85

Calls 5

rte_mcfg_ethdev_get_lockFunction · 0.85
eth_dev_allocatedFunction · 0.85
rte_spinlock_lockFunction · 0.50
rte_spinlock_unlockFunction · 0.50

Tested by

no test coverage detected