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

Function rte_ring_mc_dequeue_bulk

dpdk/lib/ring/rte_ring.h:359–365  ·  view source on GitHub ↗

* Dequeue several objects from a ring (multi-consumers safe). * * This function uses a "compare and set" instruction to move the * consumer index atomically. * * @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. * @para

Source from the content-addressed store, hash-verified

357 * The number of objects dequeued, either 0 or n
358 */
359static __rte_always_inline unsigned int
360rte_ring_mc_dequeue_bulk(struct rte_ring *r, void **obj_table,
361 unsigned int n, unsigned int *available)
362{
363 return rte_ring_mc_dequeue_bulk_elem(r, obj_table, sizeof(void *),
364 n, available);
365}
366
367/**
368 * Dequeue several objects from a ring (NOT multi-consumers safe).

Callers 3

common_ring_mc_dequeueFunction · 0.85
_st_ring_dequeue_bulkFunction · 0.85
test_ring_dequeueFunction · 0.85

Calls 1

Tested by 2

_st_ring_dequeue_bulkFunction · 0.68
test_ring_dequeueFunction · 0.68