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