Re: [PATCH v3 1/1] kernel/utsname_sysctl.c: Print kernel arch

From: Andrew Morton
Date: Thu Sep 01 2022 - 16:15:47 EST


On Thu, 1 Sep 2022 21:44:03 +0200 Petr Vorel <pvorel@xxxxxxx> wrote:

> Print the machine hardware name (UTS_MACHINE) in /proc/sys/kernel/arch.
>
> This helps people who debug kernel with initramfs with minimal
> environment (i.e. without coreutils or even busybox) or allow to open
> sysfs file instead of run 'uname -m' in high level languages.

If they're this constrained, why not run sys_uname() directly?