From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Steinert Date: Thu, 04 Mar 2004 07:19:04 +0000 Subject: Re: How can I specify a specific 'sub-device' of a device for udev Message-Id: <4046D868.6040600@kuiki.net> 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 Kay Sievers wrote: >On Mon, Mar 01, 2004 at 10:23:40AM -0600, Jonathan Steinert wrote: > > >>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 > > Right, I'll admit defeat there... I asumed the wrong things about udev and ended up burning myself on that one. However, I'd like to ask... since you (I think) asume that each physical device maps to only one node; What will happen when someone wants to name multiple devices based on an attribute higher in the than the unique branch? The first example I came up with is my Griffin iMic (a usb sound card dongle) which creates multiple device nodes. The trouble is that I think ALSA is supposed to handle this situation and not udev. The next best example I can think of would be naming USB devices based on which hub they are plugged in to. The hub must be identified by some sort of serial number or other attribute, but then there may be more than one device plugged into that hub. I'm just throwing this question out to see how it could be solved, so I can't give you specific attributes till I build the system I want this for. Thanks a ton for helping me out with the usb-serial device too. --Jonathan Steinert ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&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