Libbpf userspace function bpf_map_freeze
Low level wrapper around the BPF_MAP_FREEZE
syscall command.
Definition
int bpf_map_freeze(int fd);
Parameters
fd
: file descriptor of the map to freeze
Return
0
, on success; -errno
, on error.
Usage
This function allows you to freeze a map, preventing any further modifications to it. This is usually done on internal maps libbpf creates for constant global data. This function should only be used if the user knows what they are doing.
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome