Libbpf userspace function btf__add_func_param
Append new function parameter for current FUNC_PROTO type.
Definition
int btf__add_func_param(struct btf *btf, const char *name, int type_id);
Parameters
btf: pointer to astruct btfobjectname: name of the parameter, can beNULLor empty;type_id: type ID describing the type of the parameter.
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