Libbpf userspace function bpf_program__fd
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