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

Function rte_ring_mp_enqueue_bulk

dpdk/lib/ring/rte_ring.h:225–231  ·  view source on GitHub ↗

* Enqueue several objects on the ring (multi-producers safe). * * This function uses a "compare and set" instruction to move the * producer index atomically. * * @param r * A pointer to the ring structure. * @param obj_table * A pointer to a table of void * pointers (objects). * @param n * The number of objects to add in the ring from the obj_table. * @param free_space * if non

Source from the content-addressed store, hash-verified

223 * The number of objects enqueued, either 0 or n
224 */
225static __rte_always_inline unsigned int
226rte_ring_mp_enqueue_bulk(struct rte_ring *r, void * const *obj_table,
227 unsigned int n, unsigned int *free_space)
228{
229 return rte_ring_mp_enqueue_bulk_elem(r, obj_table, sizeof(void *),
230 n, free_space);
231}
232
233/**
234 * Enqueue several objects on a ring (NOT multi-producers safe).

Callers 3

common_ring_mp_enqueueFunction · 0.85
_st_ring_enqueue_bulkFunction · 0.85
test_ring_enqueueFunction · 0.85

Calls 1

Tested by 2

_st_ring_enqueue_bulkFunction · 0.68
test_ring_enqueueFunction · 0.68