linux/Documentation
Thomas Weißschuh d3d76fbde1 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>
2022-11-10 19:07:31 +01:00
..
2022-10-14 13:03:00 -07:00
2022-10-09 08:56:54 -07:00
2022-10-04 13:38:03 -07:00
2022-10-12 15:01:58 -07:00
2022-10-03 16:39:37 -07:00
2022-11-09 15:14:58 +01:00
2022-10-09 22:30:23 -07:00
2022-10-10 12:00:45 -07:00
2022-09-28 09:02:45 +02:00
2022-10-07 11:04:35 -07:00
2022-10-11 20:07:44 -07:00
2022-10-04 10:12:08 -07:00
2022-10-03 16:39:37 -07:00