[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YVqhMeuDI0IZL/zY@kroah.com>
Date: Mon, 4 Oct 2021 08:37:37 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Marek BehĂșn <kabel@...nel.org>
Cc: Andrew Lunn <andrew@...n.ch>, Pavel Machek <pavel@....cz>,
"linux-leds@...r.kernel.org" <linux-leds@...r.kernel.org>,
netdev@...r.kernel.org,
Jacek Anaszewski <jacek.anaszewski@...il.com>,
linux-kernel@...r.kernel.org
Subject: Re: are device names part of sysfs ABI? (was Re: devicename part of
LEDs under ethernet MAC / PHY)
On Sun, Oct 03, 2021 at 10:53:38PM +0200, Marek BehĂșn wrote:
> Hello Greg,
>
> could you give your opinion on this discussion?
What discussion? Top posting ruins that :(
> Are device names (as returned by dev_name() function) also part of
> sysfs ABI? Should these names be stable across reboots / kernel
> upgrades?
Stable in what exact way?
Numbering of devices (where a dynamic value is part of a name, like the
"42" in "usb42"), is never guaranteed to be stable, but the non-number
part of the name (like "usb" is in "usb42") is stable, as that is what
you have properly documented in the Documentation/ABI/ files defining
the bus and class devices, right?
The very reason we export all of this information to userspace is so
that userspace can figure it all out in ways it wants to, if it wants
to, and no naming scheme that has to be static and deterministic is
forced into the kernel, where it does NOT belong.
That is 1/2 of the reason why we created the whole "unified
device/driver model" in the kernel in the first place all those years
ago.
Does that help? I can't figure out what the "problem" is here...
thanks,
greg k-h
Powered by blists - more mailing lists