Skip to content

Libbpf userspace function btf__fd

0.0.1

Get the file descriptor of the BTF object.

Definition

int btf__fd(const struct btf *btf);

Parameters

  • btf: pointer to a struct btf object

Return

The file descriptor of the BTF object on success, or a negative error code on failure.

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