Skip to content

Libbpf userspace function btf__add_func_param

0.2.0

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 a struct btf object
  • name: name of the parameter, can be NULL or 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