From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Wed, 13 Aug 2008 18:52:18 +0000 Subject: Re: Patches for device names Message-Id: <1218653538.24073.25.camel@lgn.site> 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="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, 2008-08-13 at 11:22 -0700, H. Peter Anvin wrote: > Greg KH wrote: > > > > 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? > > > > Fair enough. > > Now, calling udevinfo is quite expensive; is this information available > through a programmatic API? Not directly to udev, because all higher level stuff uses HAL. We could create a shared library that offers access to the udev database, but there was no real need for that. Thanks, Kay