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