Skip to content

Helper function bpf_get_retval

v5.18

Definition

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

Get the BPF program's return value that will be returned to the upper layers.

This helper is currently supported by cgroup programs and only by the hooks where BPF program's return value is returned to the userspace via errno.

Returns

The BPF program's return value.

static int (* const bpf_get_retval)(void) = (void *) 186;

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