Skip to content

Libbpf userspace function ring__consume

1.3.0

Consumes available ring buffer data without event polling.

Definition

int ring__consume(struct ring *r);

Parameters

  • r: A ring buffer object.

Return

The number of records consumed (or INT_MAX, whichever is less), or a negative number if any of the callbacks return an 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