Skip to content

Libbpf userspace function btf__resolve_type

0.0.1

Get the type ID, the given type points to.

Definition

int btf__resolve_type(const struct btf *btf, __u32 type_id);

Parameters

  • btf: pointer to a struct btf object
  • type_id: ID of the BTF type

Return

Return the type ID, the given type points to, or a negative error code on failure.

Usage

Certain BTF kinds such as BTF_KIND_PTR point to another type. This function resolves the type ID, the given type points to.

Example

Docs could be improved

This part of the docs is incomplete, contributions are very welcome