Skip to content

Libbpf userspace function ring__consume_n

1.5.0

Consumes up to a requested amount of items from a ring buffer without event polling.

Definition

int ring__consume_n(struct ring *r, size_t n);

Parameters

  • r: A ring buffer object.
  • n: Maximum amount of items to consume.

Return

The number of items consumed, 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