Skip to content

Libbpf userspace function bpf_object__prev_map

0.6.0

Iterate over the maps in a BPF object in reverse order.

Definition

struct bpf_map * bpf_object__prev_map(const struct bpf_object *obj, const struct bpf_map *map);

Parameters

  • obj: The BPF object to iterate over.
  • map: The current map, or NULL to start iteration.

Returns

The previous map in the object, or NULL if there are no more maps.

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