From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Sat, 13 Dec 2003 00:06:42 +0000 Subject: Re: udev.rules.devfs + symlinks & a question 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 Sat, Dec 13, 2003 at 01:02:51AM +0100, Svetoslav Slavtchev wrote: > > On Thu, Dec 11, 2003 at 02:14:49AM +0100, Svetoslav Slavtchev wrote: > > > > > > it would be nice to name all devices acoring to their class, > > > not according to the bus they are conected to, but this is > > > obviously pretty interesting to implement from userspace > > > > That wouldn't be that hard, but remember, all block devices are of class > > "block", which is what I don't think you want :) > > right, > i ment "type" > > but except scsi i get only this : > > [svetljo@svetljo tmp]$ find /sys -name "type" > /sys/class/net/sit0/type > /sys/class/net/eth2/type > /sys/class/net/eth1/type > /sys/class/net/eth0/type > /sys/class/net/lo/type But what do you mean by "type"? That's what all of the different subdirectories in /sys/class are for. Showing you that those are all devices of different types, grouped together. Block is the only one not located in this place (historical reasons, combined with some limitations in the driver class code, will be fixed in 2.7) thanks, greg k-h ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&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