diff options
author | 2022-11-03 16:24:07 +0100 | |
---|---|---|
committer | 2022-11-10 19:07:31 +0100 | |
commit | d3d76fbde1c456a6d19991baa99ea8c2d6e6696f (patch) | |
tree | 1d8439184733609465b51d19a761613b91f2fe84 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | resource: Convert DEFINE_RES_NAMED() to be compound literal (diff) | |
download | wireguard-linux-d3d76fbde1c456a6d19991baa99ea8c2d6e6696f.tar.xz wireguard-linux-d3d76fbde1c456a6d19991baa99ea8c2d6e6696f.zip |
kernel/ksysfs.c: export kernel cpu byteorder
Certain files in procfs are formatted in byteorder-dependent formats.
For example the IP addresses in /proc/net/udp.
When using emulation like qemu-user, applications are not guaranteed to
be using the same byteorder as the kernel.
Therefore the kernel needs to provide a way for applications to discover
the byteorder used in API-filesystems.
Using systemcalls is not enough because these are intercepted and
translated by the emulation.
Also this makes it easier for non-compiled applications like
shellscripts to discover the byteorder.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20221103152407.3348-1-linux@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions