Skip to content

Libbpf userspace function ring_buffer__consume_n

1.5.0

Consume available ring buffer(s) data without event polling, up to n records.

Definition

int ring_buffer__consume_n(struct ring_buffer *rb, size_t n);

Parameters

  • rb: ring buffer manager to consume data from
  • n: number of records to consume

Returns

Number of records consumed across all registered ring buffers (or n, whichever is less), or negative number if any of the callbacks return error.

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