login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
December
»
7
Re: [RFC][PATCH] input: Introduce device information ioctl
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Dmitry Torokhov
Subject:
Re: [RFC][PATCH] input: Introduce device information ioctl
Date: Tuesday, December 7, 2010 - 9:51 am
On Tue, Dec 07, 2010 at 01:40:26PM +0100, Arnd Bergmann wrote:
quoted text
> On Tuesday 07 December 2010, Kay Sievers wrote: > > On Tue, Dec 7, 2010 at 10:16, Dmitry Torokhov <dmitry.torokhov@gmail.com> wrote: > > > Hi Henrik, > > > > > > On Tue, Dec 07, 2010 at 08:25:26AM +0100, Henrik Rydberg wrote: > > >> Today, userspace sets up an input device based on the data it emits. > > >> This is not always enough; a tablet and a touchscreen may emit exactly > > >> the same data, for instance, but the former should be set up with a > > >> pointer whereas the latter does not need to. Recently, a new type of > > >> touchpad has emerged where the buttons are under the pad, which changes > > >> handling logic without changing the emitted data. This patch introduces > > >> a new ioctl, EVIOCGDEVINFO, which allows userspace to extract information > > >> about the device resulting in proper setup. > > > > > > If we agree that the new ioctl is suitable we'llalso need to wireit up > > > through sysfs. Also, can we keep all definitions to INPUT_ namespace? > > > > Please don't add new ioctls which are not extensible. The ioctl should > > carry the length or the version of the structure it asks for, so it > > can be extended in the future. Sysfs should be good enough for such > > interface though. > > Please never add any ioctls that have a version or length field! > > Ideally ioctls should have only scalar arguments, not structures, > so I'd recommend splitting it into two, so you can read type and > capability parameters separately.
Yes, I think it is a good idea to turn it into 2 scalar ioctls. -- Dmitry --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC][PATCH] input: Introduce device information ioctl
, Henrik Rydberg
, (Tue Dec 7, 12:25 am)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Dmitry Torokhov
, (Tue Dec 7, 2:16 am)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Kay Sievers
, (Tue Dec 7, 3:48 am)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Dmitry Torokhov
, (Tue Dec 7, 3:56 am)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Kay Sievers
, (Tue Dec 7, 4:19 am)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Arnd Bergmann
, (Tue Dec 7, 5:40 am)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Arnd Bergmann
, (Tue Dec 7, 5:44 am)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Kay Sievers
, (Tue Dec 7, 5:49 am)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Kay Sievers
, (Tue Dec 7, 5:52 am)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Arnd Bergmann
, (Tue Dec 7, 5:55 am)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Greg KH
, (Tue Dec 7, 9:22 am)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Dmitry Torokhov
, (Tue Dec 7, 9:48 am)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Dmitry Torokhov
, (Tue Dec 7, 9:51 am)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Ping Cheng
, (Tue Dec 7, 11:48 am)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Chris Bagwell
, (Tue Dec 7, 12:18 pm)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Dmitry Torokhov
, (Tue Dec 7, 12:35 pm)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Dmitry Torokhov
, (Tue Dec 7, 12:37 pm)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Henrik Rydberg
, (Tue Dec 7, 12:57 pm)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Dmitry Torokhov
, (Tue Dec 7, 11:02 pm)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Henrik Rydberg
, (Wed Dec 8, 12:04 pm)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Valdis.Kletnieks
, (Wed Dec 8, 1:26 pm)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Henrik Rydberg
, (Wed Dec 8, 1:37 pm)
Re: [RFC][PATCH] input: Introduce device information ioctl
, Dmitry Torokhov
, (Thu Dec 9, 2:25 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Howells
[PATCH] KEYS: Use the variable 'key' in keyctl_describe_key()
Greg Kroah-Hartman
[PATCH 17/36] sysdev: detect multiple driver registrations
Andy Walls
Re: [PATCH 11/32] v4l/cx18: update workqueue usage
Thomas Gleixner
[patch -mm 19/28] x86_64: Use generic cmos update
Greg Kroah-Hartman
[PATCH 09/36] driver core: register_memory/unregister_memory clean ups and bugfix
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Johannes Schindelin
Re: error: cannot lock ref 'refs/remotes/origin/*'
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Michael Witten
Re: 'git gc --aggressive' effectively unusable
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
linux-netdev
:
David Miller
Re: [PATCH 32/53] netns xfrm: finding policy in netns
Jean-Louis Dupond
Re: tg3 driver not advertising 1000mbit
Jan Engelhardt
[PATCH 1/3] net: tcp: make hybla selectable as default congestion module
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Daniel Schaffrath
Re: tcp bw in 2.6
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB (8018): Add em2860 chip ID
Linux Kernel Mailing List
ipv6: fix an oops when force unload ipv6 module
Linux Kernel Mailing List
imxfb: Fix margin settings
Linux Kernel Mailing List
V4L/DVB (10826): cx88: Add IR support to pcHDTV HD3000 & HD5500
Linux Kernel Mailing List
tracing: protect reader of cmdline output
openbsd-misc
:
Darrin Chandler
Re: That whole "Linux stealing our code" thing
Community First Financial
Teacher A+ Loan
Jan Stary
Re: audio recording levels
Stas Miasnikou
Re: Another question: device naming convention
Andrej Elizarov
Re: Web Browsers
Colocation donated by:
Syndicate