Skip to content

Libbpf userspace function btf__find_by_name

0.0.1

Find the type id of a type by its name, in the BTF object.

Definition

__s32 btf__find_by_name(const struct btf *btf, const char *type_name);

Parameters

  • btf: pointer to a struct btf object
  • type_name: name of the type

Return

Return the type id of the type on success, 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