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

Function rte_ring_is_prod_single

dpdk/lib/ring/rte_ring.h:608–612  ·  view source on GitHub ↗

* Check is the ring for single producer. * * @param r * A pointer to the ring structure. * @return * true if ring is SP, zero otherwise. */

Source from the content-addressed store, hash-verified

606 * true if ring is SP, zero otherwise.
607 */
608static inline int
609rte_ring_is_prod_single(const struct rte_ring *r)
610{
611 return (rte_ring_get_prod_sync_type(r) == RTE_RING_SYNC_ST);
612}
613
614/**
615 * Return sync type used by consumer in the ring.

Calls 1

Tested by

no test coverage detected