Go to the source code of this file.
|
#define | clib_ring_new_aligned(ring, size, align) { clib_ring_new_inline ((void **)&(ring), sizeof(ring[0]), size, align); } |
|
#define | clib_ring_new(ring, size) { clib_ring_new_inline ((void **)&(ring), sizeof(ring[0]), size, 0);} |
|
#define | clib_ring_free(f) vec_free_h((f), sizeof(clib_ring_header_t)) |
|
#define | clib_ring_enq(ring) clib_ring_get_last_inline (ring, sizeof(ring[0]), 1) |
|
#define | clib_ring_get_last(ring) clib_ring_get_last_inline (ring, sizeof(ring[0]), 0) |
|
#define | clib_ring_deq(ring) clib_ring_get_first_inline (ring, sizeof(ring[0]), 1) |
|
#define | clib_ring_get_first(ring) clib_ring_get_first_inline (ring, sizeof(ring[0]), 0) |
|
◆ clib_ring_deq
◆ clib_ring_enq
◆ clib_ring_free
◆ clib_ring_get_first
◆ clib_ring_get_last
◆ clib_ring_new
◆ clib_ring_new_aligned
◆ clib_ring_get_first_inline()
static void* clib_ring_get_first_inline |
( |
void * |
v, |
|
|
u32 |
elt_bytes, |
|
|
int |
dequeue |
|
) |
| |
|
inlinestatic |
◆ clib_ring_get_last_inline()
static void* clib_ring_get_last_inline |
( |
void * |
v, |
|
|
u32 |
elt_bytes, |
|
|
int |
enqueue |
|
) |
| |
|
inlinestatic |
◆ clib_ring_header()
◆ clib_ring_n_enq()
static u32 clib_ring_n_enq |
( |
void * |
v | ) |
|
|
inlinestatic |
◆ clib_ring_new_inline()
static void clib_ring_new_inline |
( |
void ** |
p, |
|
|
u32 |
elt_bytes, |
|
|
u32 |
size, |
|
|
u32 |
align |
|
) |
| |
|
inlinestatic |