Skip to content

Libbpf userspace function btf__name_by_offset

0.0.1

Return the name of a BTF type by its offset. Alias of btf__str_by_offset.

Definition

const char *btf__name_by_offset(const struct btf *btf, __u32 offset);

Parameters

  • btf: BTF object
  • offset: Offset of the type

Return

A const pointer to the name of the type.

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