Libbpf userspace function btf__resolve_type
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 astruct btf
objecttype_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