Skip to content

Libbpf userspace function bpf_link_detach

0.1.0

Low level wrapper around the BPF_LINK_DETACH syscall command.

Definition

int bpf_link_detach(int link_fd);

Parameters

  • link_fd: file descriptor of the link to detach

Return

0, on success; -errno, on error.

Usage

This function should only be used if you require specific control over this process. In most cases, the bpf_link__detach or bpf_link__destroy function should be used.

Example

Docs could be improved

This part of the docs is incomplete, contributions are very welcome