diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2015-12-19 02:20:09 +0100 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-12-19 02:48:50 +0100 |
commit | 052876f8e5aec887d22c4d06e54aa5531ffcec75 (patch) | |
tree | 4327b502de0d11288b69a48fbf4a4e529949a6e0 /mm/filemap.c | |
parent | Merge branch 'psmouse-passthrough' into next (diff) | |
download | linux-052876f8e5aec887d22c4d06e54aa5531ffcec75.tar.xz linux-052876f8e5aec887d22c4d06e54aa5531ffcec75.zip |
Input: uinput - add new UINPUT_DEV_SETUP and UI_ABS_SETUP ioctl
This adds two new ioctls, UINPUT_DEV_SETUP and UI_ABS_SETUP, that replaces
the old device setup method (by write()'ing "struct uinput_user_dev" to the
node). The old method is not easily extendable and requires huge payloads.
Furthermore, overloading write() without properly versioned objects is
error-prone.
Therefore, we introduce two new ioctls to replace the old method. These
ioctls support all features of the old method, plus a "resolution" field
for absinfo. Furthermore, it's properly forward-compatible to new ABS codes
and a growing "struct input_absinfo" structure.
UI_ABS_SETUP also allows user-space to skip unknown axes if not set. There
is no need to copy the whole array temporarily into the kernel, but instead
the caller issues several ioctl where we copy each value manually.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions