Libbpf userspace function ring_buffer__consume
Consume available ring buffer(s) data without event polling.
Definition
int ring_buffer__consume(struct ring_buffer *rb);
Parameters
rb
: ring buffer manager to consume data from
Returns
Number of records consumed across all registered ring buffers (or INT_MAX
, whichever is less), or negative number if any of the callbacks return error.
Usage
Call this function to consume available data on any of the ring buffers that are part of the ring buffer manager. This function will not block, it will consume all available data and return immediately.
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome