Libbpf userspace function bpf_map__set_type
Set the type of a BPF map.
Definition
int bpf_map__set_type(struct bpf_map *map, enum bpf_map_type type);
Parameters
map
: Pointer to the BPF map.type
: Type of the map.
Return
0
on success, a negative error in case of failure.
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