From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Sat, 18 Nov 2006 09:03:44 +0000 Subject: Re: Another udev/sysfs question. Message-Id: <20061118090344.GA17051@kroah.com> List-Id: References: <335DD0B75189FB428E5C32680089FB9F80412F@mtk-sms-mail01.digi.com> In-Reply-To: <335DD0B75189FB428E5C32680089FB9F80412F@mtk-sms-mail01.digi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Fri, Nov 17, 2006 at 10:08:38PM -0600, Kilau, Scott wrote: > Hi everyone, >=20 > This is really just a sysfs question. > Not sure if both udev and sysfs questions are dealt with on this list. >=20 > I have a different driver that I am working on now, and porting it to > use sysfs as well. >=20 > This driver is a "virtual" driver, it doesn't control a board, like on > a PCI bus, ISA bus, etc, etc. >=20 > I create a "class" for this driver, so it will hang out in /sys/class > I have gotten my files made in there, so that's working fine. >=20 > Is there a way to create a subdirectory inside of the directory that > I made in /sys/class ? >=20 > For example, I have /sys/class/digi_realport as the "base" class. >=20 > I would like to hang off subdirectories in there that describe the > "virtual" nodes for the driver, for example: > /sys/class/digi_realport/node1 and /sys/class/digi_realport/node2, etc, > etc. >=20 > Is this possible to do? "possible" yes. Should you do it? No. What are you really trying to express here in sysfs? And why do you need to have a new class for your device, shouldn't it be a real device and not a class? If it's a device, you can easily create children of that device using the driver model. thanks, greg k-h ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ 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