From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Wed, 11 Oct 2006 18:19:38 +0000 Subject: Re: Device naming in udev... Message-Id: <20061011181938.GA29677@kroah.com> 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 Wed, Oct 11, 2006 at 05:22:59PM +0200, Kris van Rens wrote: > Hi there, > > I'm maintaining a kernel-driver for which udev generates a character > device file. Which driver is this? Have a pointer to it anywhere? > I set up a rule to keep a consistent place for > applications to find the device file. > > The driver module is called 'dtx'. > > This is the rule: > > BUS="usb", SYSFS{manufacturer}="FOOBAR", NAME="usb/foobar/%k" > > The match for the rule works fine, but the name assignment seems to be > udev-version dependent. > > Here's what appeared in /dev in a faulty situation (on plug-in of > multiple devices): > > /dev/dtx-0 > /dev/dtx-1 > ... > ... > > and > > /dev/usb/foobar/usbdev1.1 > /dev/usb/foobar/usbdev1.2 I think you are picking up the usbfs device node here in your rule, which is not what you want to have happen. Try triggering off of the kernel name for the device as well as the manufacturer name in order to make sure you only catch the proper device. Hope this helps, greg k-h ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ 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