Skip to content

Libbpf userspace function bpf_map__attach_struct_ops

0.0.7

Attach a BPF_MAP_TYPE_STRUCT_OPS map.

Definition

struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map);

Parameters

  • map: Pointer to the BPF map.

Return

Reference to the newly created BPF link; or NULL is returned on error, error code is stored in errno

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