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

Function rte_ring_empty

dpdk/lib/ring/rte_ring.h:548–554  ·  view source on GitHub ↗

* Test if a ring is empty. * * @param r * A pointer to the ring structure. * @return * - 1: The ring is empty. * - 0: The ring is not empty. */

Source from the content-addressed store, hash-verified

546 * - 0: The ring is not empty.
547 */
548static inline int
549rte_ring_empty(const struct rte_ring *r)
550{
551 uint32_t prod_tail = r->prod.tail;
552 uint32_t cons_tail = r->cons.tail;
553 return cons_tail == prod_tail;
554}
555
556/**
557 * Return the size of the ring.

Callers 10

bucket_adopt_orphansFunction · 0.85
tx_burst_8023adFunction · 0.85
create_trafficFunction · 0.85
test_refcnt_iterFunction · 0.85
test_ring_negative_testsFunction · 0.85
test_ring_basic_exFunction · 0.85
noisy_eth_tx_burstFunction · 0.85
show_ringFunction · 0.85

Calls

no outgoing calls

Tested by 6

create_trafficFunction · 0.68
test_refcnt_iterFunction · 0.68
test_ring_negative_testsFunction · 0.68
test_ring_basic_exFunction · 0.68