Libbpf userspace function bpf_object__next_map
Iterate over the maps in a BPF object.
Definition
struct bpf_map * bpf_object__next_map(const struct bpf_object *obj, const struct bpf_map *map);
Parameters
obj
: The BPF object to iterate over.map
: The current map, orNULL
to start iteration.
Returns
The next map in the object, or NULL
if there are no more maps.
Usage
Docs could be improved
This part of the docs is incomplete, contributions are very welcome
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome