From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Wed, 13 Aug 2008 17:49:19 +0000 Subject: Re: Patches for device names Message-Id: <20080813174919.GA30052@kroah.com> List-Id: References: <1218648175.6882.63.camel@quest> In-Reply-To: <1218648175.6882.63.camel@quest> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Wed, Aug 13, 2008 at 10:31:06AM -0700, H. Peter Anvin wrote: > Scott James Remnant wrote: >> b) kernel names remain the same, include DEVNAME in environment >> ACTION=ADd >> DEVPATH=3D/class/input/mice >> DEVNAME=3D/dev/input/mice >> SUBSYSTEM=3Dinput >> MAJOR=13 >> MINORc >> Pro: fixes sysfs and compatibility, attractive >> Con: udev needs patching, extra macro in kernel > > In this case, I would also argue we need devname in sysfs. There are=20 > enough tools out there who want to be able to correlate sysfs and devices. So the kernel should cache this information? That's a mess, why do that when userspace already has this mapping (udevinfo provides it). We already have a mapping from device major/minor already in sysfs as well. So why would the kernel need to care about this? thanks, greg k-h