Libbpf userspace function bpf_link__fd
Get the file descriptor of a BPF link.
Definition
int bpf_link__fd(const struct bpf_link *link);
Parameters
link
: Pointer to the BPF link.
Return
File descriptor of the BPF link. -1
on error.
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