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

Function rte_ring_dequeue_bulk

dpdk/lib/ring/rte_ring.h:410–416  ·  view source on GitHub ↗

* Dequeue several objects 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_table * A pointer to a table of void * pointers (objects) that will be filled. * @param n * The number of objects

Source from the content-addressed store, hash-verified

408 * The number of objects dequeued, either 0 or n
409 */
410static __rte_always_inline unsigned int
411rte_ring_dequeue_bulk(struct rte_ring *r, void **obj_table, unsigned int n,
412 unsigned int *available)
413{
414 return rte_ring_dequeue_bulk_elem(r, obj_table, sizeof(void *),
415 n, available);
416}
417
418/**
419 * Dequeue one object from a ring (multi-consumers safe).

Callers 8

bucket_dequeue_orphansFunction · 0.85
reserve_fill_queue_cpFunction · 0.85
af_xdp_tx_cpFunction · 0.85
dpaa2_qdma_dequeue_multiFunction · 0.85
test_ring_dequeueFunction · 0.85
mainFunction · 0.85

Calls 1

Tested by 2

test_ring_dequeueFunction · 0.68