diff options
author | 2024-04-06 11:15:43 +0200 | |
---|---|---|
committer | 2024-04-06 09:11:55 -0700 | |
commit | 4d22ea94ea33550538b3b14429d52cb9f96ad2c3 (patch) | |
tree | be1f6764f6ef5a655bb0d2e5d60bf7c99659a9ae /include/linux/bpf.h | |
parent | libbpf: ringbuf: Allow to consume up to a certain amount of items (diff) | |
download | wireguard-linux-4d22ea94ea33550538b3b14429d52cb9f96ad2c3.tar.xz wireguard-linux-4d22ea94ea33550538b3b14429d52cb9f96ad2c3.zip |
libbpf: Add ring__consume_n / ring_buffer__consume_n
Introduce a new API to consume items from a ring buffer, limited to a
specified amount, and return to the caller the actual number of items
consumed.
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/lkml/20240310154726.734289-1-andrea.righi@canonical.com/T
Link: https://lore.kernel.org/bpf/20240406092005.92399-4-andrea.righi@canonical.com
Diffstat (limited to 'include/linux/bpf.h')
0 files changed, 0 insertions, 0 deletions