Skip to content

Helper function bpf_ringbuf_reserve

v5.8

Definition

Copyright (c) 2015 The Libbpf Authors. All rights reserved.

Reserve size bytes of payload in a ring buffer ringbuf. flags must be 0.

Returns

Valid pointer with size bytes of memory available; NULL, otherwise.

static void *(* const bpf_ringbuf_reserve)(void *ringbuf, __u64 size, __u64 flags) = (void *) 131;

Usage

Docs could be improved

This part of the docs is incomplete, contributions are very welcome

Program types

This helper call can be used in the following program types:

Example

Docs could be improved

This part of the docs is incomplete, contributions are very welcome