Skip to content

Libbpf userspace function bpf_object__prev_program

0.6.0

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

Definition

struct bpf_program * bpf_object__prev_program(const struct bpf_object *obj, struct bpf_program *prog);

Parameters

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

Returns

The previous program in the object, or NULL if there are no more programs.

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