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

Function rte_ring_sp_enqueue_bulk

dpdk/lib/ring/rte_ring.h:248–254  ·  view source on GitHub ↗

* Enqueue several objects on a ring (NOT multi-producers safe). * * @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-NULL, returns the amount of space in the ring after the * enqueue operation has finished. *

Source from the content-addressed store, hash-verified

246 * The number of objects enqueued, either 0 or n
247 */
248static __rte_always_inline unsigned int
249rte_ring_sp_enqueue_bulk(struct rte_ring *r, void * const *obj_table,
250 unsigned int n, unsigned int *free_space)
251{
252 return rte_ring_sp_enqueue_bulk_elem(r, obj_table, sizeof(void *),
253 n, free_space);
254}
255
256/**
257 * Enqueue several objects on a ring.

Callers 9

common_ring_sp_enqueueFunction · 0.85
test_ring_enqueueFunction · 0.85
testsuite_setupFunction · 0.85
app_main_loop_rxFunction · 0.85
app_main_loop_workerFunction · 0.85
app_rx_threadFunction · 0.85
app_worker_threadFunction · 0.85

Calls 1

Tested by 3

test_ring_enqueueFunction · 0.68
testsuite_setupFunction · 0.68