Libbpf userspace function bpf_map__set_map_flags
Set the flags the map will be loaded with.
Definition
int bpf_map__set_map_flags(struct bpf_map *map, __u32 flags);
Parameters
map
: Pointer to the BPF map.flags
: Flags the map will be loaded with.
Return
0
on success, a negative error in case of failure.
Usage
Flags can only be modified before the map is loaded.
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome