Libbpf userspace function btf__add_type
Add a BTF type src_type
found in the BTF object src_btf
to the BTF object btf
.
Definition
int btf__add_type(struct btf *btf, const struct btf *src_btf, const struct btf_type *src_type);
Parameters
btf
: pointer to astruct btf
objectsrc_btf
: pointer to astruct btf
object containing the type to addsrc_type
: pointer to astruct btf_type
object to add
Return
0
, on success; < 0
, on error.
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