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

Function rte_ring_sc_dequeue_bulk

dpdk/lib/ring/rte_ring.h:383–389  ·  view source on GitHub ↗

* Dequeue several objects from a ring (NOT multi-consumers safe). * * @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 to dequeue from the ring to the obj_table, * must be strictly positive. * @param available * If non-NULL, returns the number of remaining r

Source from the content-addressed store, hash-verified

381 * The number of objects dequeued, either 0 or n
382 */
383static __rte_always_inline unsigned int
384rte_ring_sc_dequeue_bulk(struct rte_ring *r, void **obj_table,
385 unsigned int n, unsigned int *available)
386{
387 return rte_ring_sc_dequeue_bulk_elem(r, obj_table, sizeof(void *),
388 n, available);
389}
390
391/**
392 * Dequeue several objects from a ring.

Callers 6

common_ring_sc_dequeueFunction · 0.85
test_ring_dequeueFunction · 0.85
test_empty_dequeueFunction · 0.85
app_main_loop_workerFunction · 0.85
app_main_loop_txFunction · 0.85

Calls 1

Tested by 3

test_ring_dequeueFunction · 0.68
test_empty_dequeueFunction · 0.68