Skip to content

Libbpf userspace function btf__align_of

0.0.7

Get the alignment of a type in the BTF object.

Definition

int btf__align_of(const struct btf *btf, __u32 id);

Parameters

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

Return

Return the alignment of the type 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