kernels/ksysfs.c: export kernel address bits
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 21 Dec 2022 16:17:52 +0000 (16:17 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jan 2023 13:30:45 +0000 (14:30 +0100)
commit00142bfd5a916a0b3899cc709bf8f5042cf3d084
tree461d76a47c3a81156d5d6a8c9bfc94c5d1350243
parente5da06b27ff5a148e42265c8e306670a9d913969
kernels/ksysfs.c: export kernel address bits

This can be used by userspace to determine the address size of the
running kernel.
It frees userspace from having to interpret this information from the
UTS machine field.

Userspace implementation:
https://github.com/util-linux/util-linux/pull/1966

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20221221-address-bits-v1-1-8446b13244ac@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-kernel-address_bits [new file with mode: 0644]
kernel/ksysfs.c