Libbpf userspace function bpf_link__destroy
Destroy a BPF link.
Definition
int bpf_link__destroy(struct bpf_link *link);
Parameters
link
: Pointer to the BPF link.
Return
0
on success, -1
on error.
Usage
Destroying a BPF link will detach it from the kernel and free all resources associated with it.
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome