Libbpf userspace function bpf_prog_get_next_id
Low level wrapper around the BPF_PROG_GET_NEXT_ID syscall command.
Definition
int bpf_prog_get_next_id(__u32 start_id, __u32 *next_id);
Parameters
start_id: program ID to start fromnext_id: next program ID
Return
0, on success; negative error code, otherwise
Usage
This function allows you to iterate over loaded BPF programs. It returns the next program ID after the start_id provided. If start_id is 0, the first program ID is returned.
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome