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

Function rte_ring_sp_enqueue

dpdk/lib/ring/rte_ring.h:314–318  ·  view source on GitHub ↗

* Enqueue one object on a ring (NOT multi-producers safe). * * @param r * A pointer to the ring structure. * @param obj * A pointer to the object to be added. * @return * - 0: Success; objects enqueued. * - -ENOBUFS: Not enough room in the ring to enqueue; no object is enqueued. */

Source from the content-addressed store, hash-verified

312 * - -ENOBUFS: Not enough room in the ring to enqueue; no object is enqueued.
313 */
314static __rte_always_inline int
315rte_ring_sp_enqueue(struct rte_ring *r, void *obj)
316{
317 return rte_ring_sp_enqueue_elem(r, &obj, sizeof(void *));
318}
319
320/**
321 * Enqueue one object on a ring.

Callers 10

rte_efd_createFunction · 0.85
rte_efd_deleteFunction · 0.85
hn_rxpktFunction · 0.85
thread_msg_send_recvFunction · 0.85
thread_msg_sendFunction · 0.85
test_ring_enqueueFunction · 0.85
thread_msg_send_recvFunction · 0.85
thread_msg_sendFunction · 0.85
pipeline_msg_send_recvFunction · 0.85
pipeline_msg_sendFunction · 0.85

Calls 1

rte_ring_sp_enqueue_elemFunction · 0.85

Tested by 1

test_ring_enqueueFunction · 0.68