Skip to content

Libbpf userspace function ring__size

1.3.0

Returns the total size of the ring buffer's map data area (excluding special producer/consumer pages). Effectively this gives the amount of usable bytes of data inside the ring buffer.

Definition

size_t ring__size(const struct ring *r);

Parameters

  • r: A ring buffer object.

Return

The total size of the ring buffer map data area.

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