| rte_event_ring.h(3) | Library Functions Manual | rte_event_ring.h(3) |
rte_event_ring.h
#include <stdint.h>
#include <rte_common.h>
#include <rte_ring.h>
#include <rte_ring_elem.h>
#include 'rte_eventdev.h'
struct rte_event_ring
static __rte_always_inline unsigned int
rte_event_ring_count (const struct rte_event_ring *r)
static __rte_always_inline unsigned int
rte_event_ring_free_count (const struct rte_event_ring *r)
static __rte_always_inline unsigned int
rte_event_ring_enqueue_bulk (struct rte_event_ring *r, const
struct rte_event *events, unsigned int n, uint16_t *free_space)
static __rte_always_inline unsigned int
rte_event_ring_dequeue_bulk (struct rte_event_ring *r, struct
rte_event *events, unsigned int n, uint16_t *available)
static __rte_always_inline unsigned int
rte_event_ring_enqueue_burst (struct rte_event_ring *r, const
struct rte_event *events, unsigned int n, uint16_t *free_space)
static __rte_always_inline unsigned int
rte_event_ring_dequeue_burst (struct rte_event_ring *r, struct
rte_event *events, unsigned int n, uint16_t *available)
struct rte_event_ring * rte_event_ring_lookup (const char *name)
void rte_event_ring_free (struct rte_event_ring *r)
static unsigned int rte_event_ring_get_size (const struct
rte_event_ring *r)
static unsigned int rte_event_ring_get_capacity (const struct
rte_event_ring *r)
RTE Event Ring
This provides a ring implementation for passing rte_event structures from one core to another.
Definition in file rte_event_ring.h.
Returns the number of events in the ring
Parameters
Returns
Definition at line 50 of file rte_event_ring.h.
Returns the amount of free space in the ring
Parameters
Returns
Definition at line 65 of file rte_event_ring.h.
Enqueue several objects on a ring.
This function calls the multi-producer or the single-producer version depending on the default behavior that was specified at ring creation time (see flags).
Parameters
Returns
Definition at line 91 of file rte_event_ring.h.
Dequeue a set of events from a ring
Note: this API does not work with pointers to events, rather it copies the events themselves to the destination events buffer.
Parameters
Returns
Definition at line 127 of file rte_event_ring.h.
Enqueue a set of events onto a ring
Note: this API enqueues by copying the events themselves onto the ring, rather than just placing a pointer to each event onto the ring. This means that statically-allocated events can safely be enqueued by this API.
Parameters
Returns
Definition at line 165 of file rte_event_ring.h.
Dequeue a set of events from a ring
Note: this API does not work with pointers to events, rather it copies the events themselves to the destination events buffer.
Parameters
Returns
Definition at line 201 of file rte_event_ring.h.
Search for an event ring based on its name
Parameters
Returns
De-allocate all memory used by the ring.
Parameters
Return the size of the event ring.
Parameters
Returns
Definition at line 328 of file rte_event_ring.h.
Return the number of elements which can be stored in the event ring.
Parameters
Returns
Definition at line 342 of file rte_event_ring.h.
Generated automatically by Doxygen for DPDK from the source code.
| Version 24.11.3 | DPDK |