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

Function rte_mempool_get

dpdk/lib/mempool/rte_mempool.h:1698–1702  ·  view source on GitHub ↗

* Get one object from the mempool. * * This function calls the multi-consumers or the single-consumer * version, depending on the default behavior that was specified at * mempool creation (see flags). * * If cache is enabled, objects will be retrieved first from cache, * subsequently from the common pool. Note that it can return -ENOENT when * the local cache and common pool are empty, eve

Source from the content-addressed store, hash-verified

1696 * - -ENOENT: Not enough entries in the mempool; no object is retrieved.
1697 */
1698static __rte_always_inline int
1699rte_mempool_get(struct rte_mempool *mp, void **obj_p)
1700{
1701 return rte_mempool_get_bulk(mp, obj_p, 1);
1702}
1703
1704/**
1705 * Get a contiguous blocks of objects from the mempool.

Callers 15

ff_ipc_msg_allocFunction · 0.85
prepare_write_back_dataFunction · 0.85
rxa_create_event_vectorFunction · 0.85
rte_mbuf_raw_allocFunction · 0.85
node_allocFunction · 0.85
node_allocFunction · 0.85
get_sessionFunction · 0.85

Calls 1

rte_mempool_get_bulkFunction · 0.85

Tested by 15

test_timer_secondaryFunction · 0.68
test_op_forward_modeFunction · 0.68
test_timer_stateFunction · 0.68
_arm_timersFunction · 0.68
test_timer_cancelFunction · 0.68
_cancel_producerFunction · 0.68
test_timer_cancel_randomFunction · 0.68
event_timer_armFunction · 0.68
event_timer_arm_doubleFunction · 0.68
event_timer_arm_expiryFunction · 0.68
event_timer_arm_rearmFunction · 0.68