Skip to content

Libbpf userspace function btf__load_module_btf

0.5.0

Load BTF object of a kernel module.

Definition

struct btf *btf__load_module_btf(const char *module_name, struct btf *vmlinux_btf);

Parameters

  • module_name: name of the module
  • vmlinux_btf: pointer to a struct btf object gotten from btf__load_vmlinux_btf

Return

Return a pointer to a struct btf object on success, or NULL on failure. The caller is responsible for freeing the returned object with btf__free.

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