Skip to content

Libbpf userspace function bpf_program__type

0.7.0

Get the type of a BPF program.

Definition

enum bpf_prog_type bpf_program__type(const struct bpf_program *prog);

Parameters

  • prog: BPF program to get the type of.

Return

The type of the BPF program. One of the program types.

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