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

Function rte_ring_dequeue_elem

dpdk/lib/ring/rte_ring_elem.h:472–477  ·  view source on GitHub ↗

* Dequeue one object from a ring. * * This function calls the multi-consumers or the single-consumer * version depending on the default behaviour that was specified at * ring creation time (see flags). * * @param r * A pointer to the ring structure. * @param obj_p * A pointer to the object that will be filled. * @param esize * The size of ring element, in bytes. It must be a multi

Source from the content-addressed store, hash-verified

470 * dequeued.
471 */
472static __rte_always_inline int
473rte_ring_dequeue_elem(struct rte_ring *r, void *obj_p, unsigned int esize)
474{
475 return rte_ring_dequeue_bulk_elem(r, obj_p, esize, 1, NULL) ? 0 :
476 -ENOENT;
477}
478
479/**
480 * Enqueue several objects on the ring (multi-producers safe).

Callers 6

rte_ring_dequeueFunction · 0.85
mlx5_hws_cnt_pool_getFunction · 0.85
flow_hw_get_q_aged_flowsFunction · 0.85
dsw_port_ctl_dequeueFunction · 0.85
test_ring_dequeueFunction · 0.85

Calls 1

Tested by 1

test_ring_dequeueFunction · 0.68