Libbpf userspace function bpf_object__find_program_by_name
Query a BPF object for a program by name.
Definition
struct bpf_program * bpf_object__find_program_by_name(const struct bpf_object *obj, const char *name);
Parameters
obj
: Pointer to a valid BPF objectname
: Name of the program to find
Returns
A pointer to the program with the given name, or NULL
if no program with that name is found.
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