Skip to content

Libbpf userspace function libbpf_find_vmlinux_btf_id

0.0.6

Find the BTF ID of a kernel symbol.

Definition

int libbpf_find_vmlinux_btf_id(const char *name, enum bpf_attach_type attach_type);

Parameters

  • name: The kernel symbol name.
  • attach_type: The attach type.

Return

The BTF ID of the kernel symbol, or a negative error code on failure.

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