Libbpf userspace function ring__avail_data_size
Returns the number of bytes in the ring buffer not yet consumed. This has no locking associated with it, so it can be inaccurate if operations are ongoing while this is called. However, it should still show the correct trend over the long-term.
Definition
size_t ring__avail_data_size(const struct ring *r);
Parameters
r
: A ring buffer object.
Return
The number of bytes not yet consumed.
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