Libbpf userspace function bpf_map__unpin
Removes the file that serves as a 'pin' for the BPF map.
Definition
int bpf_map__unpin(struct bpf_map *map, const char *path);
Parameters
map
: The bpf_map to unpinpath
: A file path for the 'pin'
Return
0
, on success; negative error, otherwise
Usage
The path
parameter can be NULL
, in which case the pin_path
map attribute is unpinned. If both the path
parameter and pin_path
map attribute are set, they must be equal.
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome