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

Function rte_mempool_empty

dpdk/lib/mempool/rte_mempool.h:1807–1811  ·  view source on GitHub ↗

* Test if the mempool is empty. * * When cache is enabled, this function has to browse the length of all * lcores, so it should not be used in a data path, but only for debug * purposes. User-owned mempool caches are not accounted for. * * @param mp * A pointer to the mempool structure. * @return * - 1: The mempool is empty. * - 0: The mempool is not empty. */

Source from the content-addressed store, hash-verified

1805 * - 0: The mempool is not empty.
1806 */
1807static inline int
1808rte_mempool_empty(const struct rte_mempool *mp)
1809{
1810 return rte_mempool_avail_count(mp) == 0;
1811}
1812
1813/**
1814 * Return the IO address of elt, which is an element of the pool mp.

Callers 2

test_mempool_basic_exFunction · 0.85
test_pktmbuf_pool_bulkFunction · 0.85

Calls 1

rte_mempool_avail_countFunction · 0.85

Tested by 2

test_mempool_basic_exFunction · 0.68
test_pktmbuf_pool_bulkFunction · 0.68