Skip to content

Libbpf userspace function bpf_link__update_map

1.2.0

Swap out the struct ops map of the link.

Definition

int bpf_link__update_map(struct bpf_link *link, const struct bpf_map *map);

Parameters

  • link: Pointer to the BPF link.

Usage

This function swaps out the BPF_MAP_TYPE_STRUCT_OPS map that is linked to the kernel.

Example

Docs could be improved

This part of the docs is incomplete, contributions are very welcome