Libbpf userspace function bpf_iter_create
Low level wrapper around the BPF_ITER_CREATE
syscall command.
Definition
int bpf_iter_create(int link_fd);
Parameters
link_fd
: file descriptor of the link to create the iterator for
Return
0
, on success; negative error code, otherwise
Usage
This function should only be used if you require specific control over the iterator creation process. In most cases, the bpf_program__attach_iter
function should be used.
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome