Libbpf userspace function btf__add_ptr
Append new BTF_KIND_PTR
type to BTF object.
Definition
int btf__add_ptr(struct btf *btf, int ref_type_id);
Parameters
btf
: pointer to astruct btf
objectref_type_id
: referenced type ID, it might not exist yet;
Return
>0
, type ID of newly added BTF type; <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