From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Tue, 13 Jan 2004 19:46:31 +0000 Subject: Re: devices with more than one node Message-Id: <20040113194631.GA3818@kroah.com> List-Id: References: <20040113193842.GA29887@suse.de> In-Reply-To: <20040113193842.GA29887@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tue, Jan 13, 2004 at 08:38:42PM +0100, Olaf Hering wrote: > > How is udev supposed to handle devices with more than one node? udev will get a hotplug event for every node that is created in sysfs. > scsi devices have a block and chardev, More on scsi in a minute... > inputdevices have also an event node attached. Yes, and you get two different hotplug events, and udev just works, right? (this is with the kernel patches I sent out last week...) > Maybe I miss the obvious, but how do I match scsi as example? Not that > sg provides a sg 'dev' entry today, but an external PROGRAM could not > provide an relative symlink to sgN. scsi needs to create a scsi_generic class (or some such name) and have it contain the sg information. It should not be in the cdev directory like it currently is (that's badly broken and should have never made it in...) That sg class can contain the symlink back to the device that it is associated with. Does this help? thanks, greg k-h ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ 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