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

Function rte_ring_sc_dequeue_burst

dpdk/lib/ring/rte_ring.h:783–789  ·  view source on GitHub ↗

* Dequeue several objects from a ring (NOT multi-consumers safe).When the * request objects are more than the available objects, only dequeue the * actual number of objects * * @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_t

Source from the content-addressed store, hash-verified

781 * - n: Actual number of objects dequeued, 0 if ring is empty
782 */
783static __rte_always_inline unsigned int
784rte_ring_sc_dequeue_burst(struct rte_ring *r, void **obj_table,
785 unsigned int n, unsigned int *available)
786{
787 return rte_ring_sc_dequeue_burst_elem(r, obj_table, sizeof(void *),
788 n, available);
789}
790
791/**
792 * Dequeue multiple objects from a ring up to a maximum number.

Callers 15

reader_pkt_rxFunction · 0.85
rte_port_ring_reader_rxFunction · 0.85
rte_swx_ipsec_pre_cryptoFunction · 0.85
hn_recv_pktsFunction · 0.85
pmd_rx_pkt_burstFunction · 0.85
sfc_repr_proxy_handle_txFunction · 0.85
sfc_repr_rx_burstFunction · 0.85
process_ringFunction · 0.85
test_ring_dequeueFunction · 0.85
test_port_ring_writerFunction · 0.85

Calls 1

Tested by 5

test_ring_dequeueFunction · 0.68
test_port_ring_writerFunction · 0.68
create_trafficFunction · 0.68