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

Function rte_eth_dev_owner_unset

dpdk/lib/ethdev/rte_ethdev.c:539–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537}
538
539int
540rte_eth_dev_owner_unset(const uint16_t port_id, const uint64_t owner_id)
541{
542 const struct rte_eth_dev_owner new_owner = (struct rte_eth_dev_owner)
543 {.id = RTE_ETH_DEV_NO_OWNER, .name = ""};
544 int ret;
545
546 rte_spinlock_lock(rte_mcfg_ethdev_get_lock());
547
548 if (eth_dev_shared_data_prepare() != NULL)
549 ret = eth_dev_owner_set(port_id, owner_id, &new_owner);
550 else
551 ret = -ENOMEM;
552
553 rte_spinlock_unlock(rte_mcfg_ethdev_get_lock());
554
555 rte_ethdev_trace_owner_unset(port_id, owner_id, ret);
556
557 return ret;
558}
559
560int
561rte_eth_dev_owner_delete(const uint64_t owner_id)

Callers 2

fs_bus_initFunction · 0.85
hn_remove_delayedFunction · 0.85

Calls 5

rte_mcfg_ethdev_get_lockFunction · 0.85
eth_dev_owner_setFunction · 0.85
rte_spinlock_lockFunction · 0.50
rte_spinlock_unlockFunction · 0.50

Tested by

no test coverage detected