Re: [PATCH] ksysfs: Expose hardware name

From: Greg KH

Date: Mon Feb 23 2026 - 08:52:39 EST


On Mon, Feb 23, 2026 at 02:34:48PM +0100, Richard Weinberger wrote:
> Userspace tools often require a short, descriptive name of the hardware
> platform. Currently, this information is fragmented: Device Tree-based
> platforms typically use /proc/device-tree/model, while x86 platforms
> combine multiple values from /sys/class/dmi/id/. There is no uniform,
> platform-agnostic way to retrieve this string.
>
> The kernel already maintains dump_stack_arch_desc_str[], which contains
> the model name or DMI values used for the "Hardware name:" field in
> stack traces.
>
> Expose dump_stack_arch_desc_str[] at /sys/kernel/hardware_name to
> provide userspace with a consistent interface for identifying the
> underlying hardware.

No objection from me, but now that this is a global symbol in the
kernel, "dump_" seems like an odd prefix for this. How about
"linux_hardware_name" to match up with the sysfs file name?

</bikeshed>

thanks,

greg k-h