Skip to content

Libbpf userspace function bpf_object__token_fd

1.5.0

is an accessor for BPF token FD associated with BPF object.

Definition

int bpf_object__token_fd(const struct bpf_object *obj);

Parameters

  • obj: Pointer to a valid BPF object

Return

BPF token FD or -1, if it wasn't set

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