From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Hannes Reinecke <hare@suse.de>
Cc: Greg KH <greg@kroah.com>,
Linux Kernel <linux-kernel@vger.kernel.org>,
Vojtech Pawlik <vojtech@suse.cz>
Subject: Re: [PATCH 0/2] Remove input_call_hotplug
Date: Wed, 19 Jan 2005 09:30:14 -0500 [thread overview]
Message-ID: <d120d500050119063040de00a7@mail.gmail.com> (raw)
In-Reply-To: <41EE4AE0.9030308@suse.de>
On Wed, 19 Jan 2005 12:56:16 +0100, Hannes Reinecke <hare@suse.de> wrote:
> Greg KH wrote:
> > On Tue, Jan 18, 2005 at 05:20:40PM -0500, Dmitry Torokhov wrote:
> >
> >>I was mostly talking about the need of 2 separate classes and this
> >>patch lays groundwork for it althou lifetime rules in input system
> >>need to be cleaned up before we can go all the way.
> >
> >
> > I agree. But I think only 1 class is needed, that way we don't break
> > userspace, which is a pretty important thing.
> >
> Well, if you could show me how to do this with the class_interface thing
> I'd be happy to comply.
>
> The input layer design is like this:
> - Physical devices present one (or several) abstract input devices
> (which correspond to struct input_dev)
> - Each input device can be linked to one or several input handlers
> (which correspond to struct input_handle)
> - Each handler is represented to userspace with a device node.
>
> The problem with the current input layer is that each 'struct
> input_handle' is associated with a class_simple device.
> This class is named 'input', so we're getting 'input' events from it.
> But each instantiation of struct input_dev is also sending 'input'
> events as it is doing the call_usermodehelper call directly.
>
Yes, this is the problem and needs to be resolved. Thankfully most
people have keyboard support compiled in so it's not fatal but we
probably waht hotplug package be updated first before we commit this
change.
>
> But if we were going to implement this with device_interface, we'd be
> having a /sys/class structure like:
>
> class
> |- isa0060-serio0-input0
> | |- event0
> | | `dev
> | |- key
> | |- ...
> |- ..
>
> So we'd be moving the 'dev' attribute one directory down, again
> incurring a userland breakage.
> Plus it would be far more coding involved as the entire input layer
> structure would have to be redone.
>
If I understand correctly we do not have subclasses so it will look like
class
|- input_device
| |- input0
| |- input1
|
|- input
| |-event0
| |-event1
| |-mouse0
So breakage is really minimal.
--
Dmitry
next prev parent reply other threads:[~2005-01-19 14:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-18 14:56 [PATCH 0/2] Remove input_call_hotplug Hannes Reinecke
2005-01-18 21:30 ` Greg KH
2005-01-18 21:49 ` Dmitry Torokhov
2005-01-18 21:58 ` Greg KH
2005-01-18 22:20 ` Dmitry Torokhov
2005-01-19 1:31 ` Greg KH
2005-01-19 11:56 ` Hannes Reinecke
2005-01-19 14:30 ` Dmitry Torokhov [this message]
2005-01-19 21:39 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d120d500050119063040de00a7@mail.gmail.com \
--to=dmitry.torokhov@gmail.com \
--cc=dtor_core@ameritech.net \
--cc=greg@kroah.com \
--cc=hare@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=vojtech@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox