From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Tue, 18 Nov 2003 01:14:34 +0000 Subject: Re: [udev] updated man, subdirs, ownership, namedev enum patches Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Nov 17, 2003 at 06:33:32PM +0100, Arnd Bergmann wrote: > On Saturday 15 November 2003 17:09, Kay Sievers wrote: > > > Oh, I see. Do you mean something like this: > > > > LABEL, BUS="usb", model="Creative Labs WebCam 3", > > NAME="webcam%n-%M:%m-test" > > That would at least be part of the solution I'm looking for. How about > extra format characters for bus_id and for the result of a callout program? Sure, I can see the use for that. Want to send a patch? :) > What I really need is a way to generate names for my devices without > having to list each one in the configuration file in its own line. With > the old devfs naming scheme, the dasda1 block device would become visible > as /dev/dasd/0.0.0203/part1, where 0.0.0203 is the bus_id. I've tried > implementing at least autogeneration of /udev/dasd-0.0.0203p1, but I haven't > found an easy way to get from the partition's sysfs_class_device to the > corresponding sysfs_device in get_attr(). Take a look at the current bk tree (which has moved to bk://linuxusb.bkbits.net/udev/ ) I've made finding that device a lot easier now, and it works for all rule types. > Also, do I get problems with the database implementation when I try > to use the same configuration file entry for all devices using the same > driver or similar? You shouldn't. udev doesn't care about drivers, only names of devices. thanks, greg k-h ------------------------------------------------------- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access your computer from any Web browser or wireless device. Click here to Try it Free! https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel