src/dpdk/lib/librte_mempool/rte_mempool.h
static inline int
rte_mempool_empty(const struct rte_mempool *mp)
{
	return rte_mempool_avail_count(mp) == 0;
}
/**
 * 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.
 */
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.
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 .
static inline int
rte_mempool_empty(const struct rte_mempool *mp)
{
	return rte_mempool_avail_count(mp) == 0;
}
static inline int rte_mempool_empty ( const struct rte_mempool * mp ) { return rte_mempool_avail_count ( mp ) == 0 ; }
Test if the mempool is empty.
Test if the mempool is empty .