Skip to content

Libbpf userspace function btf__add_float

0.4.0

Append new BTF_KIND_FLOAT type to BTF object.

Definition

int btf__add_float(struct btf *btf, const char *name, size_t byte_sz);

Parameters

  • btf: pointer to a struct btf object
  • name: name of the type; non-empty, non-NULL type name;
  • byte_sz: size of the type, in bytes;

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