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

Function eth_dev_get

dpdk/lib/ethdev/ethdev_driver.c:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63static struct rte_eth_dev *
64eth_dev_get(uint16_t port_id)
65 __rte_exclusive_locks_required(rte_mcfg_ethdev_get_lock())
66{
67 struct rte_eth_dev *eth_dev = &rte_eth_devices[port_id];
68
69 eth_dev->data = &eth_dev_shared_data->data[port_id];
70
71 return eth_dev;
72}
73
74struct rte_eth_dev *
75rte_eth_dev_allocate(const char *name)

Callers 2

rte_eth_dev_allocateFunction · 0.85

Calls 1

rte_mcfg_ethdev_get_lockFunction · 0.85

Tested by

no test coverage detected