Libbpf userspace function bpf_map__set_autoattach
Sets whether libbpf has to auto-attach map during BPF skeleton attach phase.
Definition
int bpf_map__set_autoattach(struct bpf_map *map, bool autoattach);
Parameters
map
: the BPF map instanceautoattach
: whether to attach map during BPF skeleton attach phase
Return
0 on success; negative error code, otherwise
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