From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Date: Tue, 14 Jun 2005 04:26:06 +0000 Subject: Re: Input sysbsystema and hotplug Message-Id: <200506132326.06630.dtor_core@ameritech.net> List-Id: References: <200506131607.51736.dtor_core@ameritech.net> <20050613221657.GB15381@suse.de> In-Reply-To: <20050613221657.GB15381@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: Greg KH Cc: linux-hotplug-devel@lists.sourceforge.net, Vojtech Pavlik , Kay Sievers , LKML On Monday 13 June 2005 17:16, Greg KH wrote: > On Mon, Jun 13, 2005 at 04:07:51PM -0500, Dmitry Torokhov wrote: > > Hi, > >=20 > > I am trying to convert input systsem to play nicely with sysfs and I am > > having trouble with hotplug agent. The old hotplug mechanism was using > > "input" as agent/subsystem name, unfortunately I can't simply use "inpu= t" > > class because when Greg added class_simple support to input handlers > > (evdev, mousedev, joydev, etc) he used that name. >=20 > Why not? =A0What's wrong with using the existing input class? =A0I was > hopeing it would get flushed out into something "real" someday. =A0All you > have to do is keep the "dev" stuff in there somewhere and udev will be > happy. >=20 They are different. Your input class represents userpsace interfaces, my input class represent middleman class devices. If you remember, input core looks like this: evdev (/dev/input/eventX devices) / hardware / device -------- input_dev - mousedev (/dev/input/mouseX, (serio port, \ /dev/input/mice USB port) \ joydev (/dev/input/jsX devices) Your input class is fine (except for its name as it uses the same name that input core was/is using for notification about new instances of input_devs), but it represents different point in object hierarchy, as it represents /dev/input/{mouse|event|js}X objects. Your class devices are useful to properly create device nodes and probably set up userspace applications to use new input devices. My input_dev class devices are useful so hotplug would load proper input handlers (joysdev, mousedev) to create your class devices. I hope it explains things a bit... =20 --=20 Dmitry ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotp= ut a projector? How fast can you ride your desk chair down the office luge tra= ck? If you want to score the big prize, get to know the little guy. =20 Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ 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