Skip to content

Libbpf userspace function bpf_program__fd

0.0.1

Returns the file descriptor of a BPF program.

Definition

int bpf_program__fd(const struct bpf_program *prog);

Parameters

  • prog: The BPF program.

Returns

The file descriptor of the BPF program. 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