From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Date: Tue, 14 Jun 2005 06:14:38 +0000 Subject: Re: Input sysbsystema and hotplug Message-Id: <200506140114.39398.dtor_core@ameritech.net> List-Id: References: <200506131607.51736.dtor_core@ameritech.net> <200506131638.09140.dtor_core@ameritech.net> <20050613221736.GC15381@suse.de> In-Reply-To: <20050613221736.GC15381@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Greg KH Cc: linux-hotplug-devel@lists.sourceforge.net, Kay Sievers , Vojtech Pavlik , LKML , Hannes Reinecke On Monday 13 June 2005 17:17, Greg KH wrote: > On Mon, Jun 13, 2005 at 04:38:08PM -0500, Dmitry Torokhov wrote: > > On Monday 13 June 2005 16:26, Kay Sievers wrote: > > > On Mon, Jun 13, 2005 at 04:07:51PM -0500, Dmitry Torokhov wrote: > > > > > > > > where inputX are class devices, mouse and event are subclasses of input > > > > class and mouseX and eventX are again class devices. > > > > > > We don't support childs of class devices until now. Would be nice maybe, but > > > someone needs to add that to the driver-core first and we would need to make > > > a bunch of userspace stuff aware of it ... > > > > > > > Something like patch below will suffice I think (not tested). > > No, you need to increment the parent when you register the child. Look > at the device code for what's needed for this. > Don't quite follow what you are saying. If you are saying that it needs to call class_get(parent) I don't think it's necessary as kobject code will grab the reference (to class's subsystem kset). All in all it seems to be working: [dtor@core ~]$ ls /sys/class/input_dev/ input0 input3 input4 input_dev_subclass [dtor@core ~]$ -- Dmitry ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r _______________________________________________ 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