Skip to content

Libbpf userspace function btf__endianness

0.2.0

Get the endianness of the BTF object.

Definition

enum btf_endianness btf__endianness(const struct btf *btf);

Parameters

  • btf: pointer to a struct btf object

Return

Return the endianness of the BTF object.

enum btf_endianness

enum btf_endianness {
    BTF_LITTLE_ENDIAN = 0,
    BTF_BIG_ENDIAN = 1,
};

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