Libbpf userspace function btf_ext__set_endianness
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 astruct btf_ext
objectendian
: 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