Skip to content

Libbpf userspace function btf_ext__set_endianness

1.5.0

Set the endianness of the BTF extension object.

Definition

int btf_ext__set_endianness(struct btf_ext *btf_ext, enum btf_endianness endian);

Parameters

  • btf_ext: pointer to a struct btf_ext object
  • endian: endianness to set

Return

Return 0 on success, or a negative error code on failure.

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