Libbpf userspace function ring_buffer__ring
Returns the ring buffer object inside a given ring buffer manager representing a single BPF_MAP_TYPE_RINGBUF
map instance.
Definition
struct ring *ring_buffer__ring(struct ring_buffer *rb, unsigned int idx);
Parameters
rb
: A ringbuffer manager object.idx
: An index into the ring buffers contained within the ring buffer manager object. The index is 0-based and corresponds to the order in whichring_buffer__add
was called.
Return
A ring buffer object on success; NULL
and errno
set if the index is invalid.
Usage
Docs could be improved
This part of the docs is incomplete, contributions are very welcome
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome