Skip to content

Libbpf userspace function bpf_object__next_program

0.6.0

Iterate over the programs in a BPF object.

Definition

struct bpf_program * bpf_object__next_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 next 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