Skip to content

Libbpf userspace function btf__resolve_size

0.0.1

Resolve the size of a BTF type.

Definition

__s64 btf__resolve_size(const struct btf *btf, __u32 type_id);

Parameters

  • btf: pointer to a struct btf object
  • type_id: ID of the BTF type

Return

Return the size of the BTF type in bytes on success, or a negative error code on failure.

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