Skip to content

Libbpf userspace function btf__add_type

0.4.0

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 a struct btf object
  • src_btf: pointer to a struct btf object containing the type to add
  • src_type: pointer to a struct 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