From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Tue, 02 Mar 2004 00:37:43 +0000 Subject: Re: How can I specify a specific 'sub-device' of a device for udev naming? Message-Id: <20040302003743.GB6556@vrfy.org> List-Id: References: <4042D36F.9020909@kuiki.net> In-Reply-To: <4042D36F.9020909@kuiki.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Mar 01, 2004 at 10:23:40AM -0600, Jonathan Steinert wrote: > Kay Sievers wrote: > >On Mon, 2004-03-01 at 07:08, Jonathan Steinert wrote: > > > >>2) How can I write a rule to match the usb-serial interface of a usb > >>device with a particular serial number? > > > > > >> looking at the device chain at > >>'/sys/devices/pci0000:00/0000:00:1d.2/usb2/2-1': > >> BUS="usb" > > > >... > > > >> SYSFS{serial}="304087" > > > > > >Your serial number belongs the "usb"-device and not the virtual > >"usb-serial"-device. A match for the "hardware" behind your serial > >device should work fine: > > > > BUS="usb", SYSFS{serial}="304087", NAME="foo" > > Sure, but matching this usb device does not yield me a tty. What do you get instead? I took a look on your 'tree' and it has only one interface. So, if you match with the SYSFS{serial}="304087" there should still the tty be created. Matching any device along the chain of your "node-device" with a rule, will still create only the "node-device", nothing else. Maybe I'm a bit confused and if I get the subject completly wrong please tell me :) Kay ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ 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