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

Function rte_ring_enqueue

dpdk/lib/ring/rte_ring.h:335–339  ·  view source on GitHub ↗

* Enqueue one object on a ring. * * This function calls the multi-producer or the single-producer * 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 * A pointer to the object to be added. * @return * - 0: Success; objects enqueued. * - -ENOBUFS: Not enough room in the

Source from the content-addressed store, hash-verified

333 * - -ENOBUFS: Not enough room in the ring to enqueue; no object is enqueued.
334 */
335static __rte_always_inline int
336rte_ring_enqueue(struct rte_ring *r, void *obj)
337{
338 return rte_ring_enqueue_elem(r, &obj, sizeof(void *));
339}
340
341/**
342 * Dequeue several objects from a ring (multi-consumers safe).

Callers 15

ff_ipc_sendFunction · 0.85
ff_dpdk_if.cFile · 0.85
handle_msgFunction · 0.85
ff_kni_enqueueFunction · 0.85
rxa_intr_ring_enqueueFunction · 0.85
bucket_enqueue_singleFunction · 0.85
bucket_dequeue_orphansFunction · 0.85
process_opFunction · 0.85
process_asym_opFunction · 0.85
process_opFunction · 0.85

Calls 1

rte_ring_enqueue_elemFunction · 0.85

Tested by 5

test_ring_enqueueFunction · 0.68
_cancel_producerFunction · 0.68
test_refcnt_iterFunction · 0.68