Skip to content

Libbpf userspace function bpf_map__set_autoattach

1.5.0

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 instance
  • autoattach: 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