13 Feb, 2014
1 commit
-
uinput is used in the xorg-integration-tests suite and in the wayland
test suite. These automated tests suites create many virtual input
devices and then hook something to read these newly created devices.Currently, uinput does not provide the created input device, which means
that we rely on an heuristic to guess which input node was created.
The problem is that is heuristic is subjected to races between different
uinput devices or even with physical devices. Having a way to retrieve
the sysfs path allows us to find without any doubts the event node.Signed-off-by: Benjamin Tissoires
Reviewed-by: David Herrmann
Signed-off-by: Dmitry Torokhov
13 Oct, 2012
1 commit
-
Signed-off-by: David Howells
Acked-by: Arnd Bergmann
Acked-by: Thomas Gleixner
Acked-by: Michael Kerrisk
Acked-by: Paul E. McKenney
Acked-by: Dave Jones
22 Aug, 2012
1 commit
-
Switch to using __u32/__s32 instead of ordinary 'int' in structures
forming userspace API.Also internally make request_id unsigned int.
Signed-off-by: Dmitry Torokhov
13 Oct, 2011
1 commit
-
The problem here is that max_effects can wrap on 32 bits systems.
We'd allocate a smaller amount of data than sizeof(struct ff_device).
The call to kcalloc() on the next line would fail but it would write
the NULL return outside of the memory we just allocated causing data
corruption.The call path is that uinput_setup_device() get ->ff_effects_max from
the user and sets the value in the ->private_data struct. From there
it is:
-> uinput_ioctl_handler()
-> uinput_create_device()
-> input_ff_create(dev, udev->ff_effects_max);I've also changed ff_effects_max so it's an unsigned int instead of
a signed int as a cleanup.Signed-off-by: Dan Carpenter
Signed-off-by: Dmitry Torokhov
20 Dec, 2010
1 commit
-
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 logic without changing the emitted data. This patch introduces
a new ioctl, EVIOCGPROP, which enables user access to a set of device
properties useful during setup. The properties are given as a bitmap
in the same fashion as the event types, and are also made available
via sysfs, uevent and /proc/bus/input/devices.Acked-by: Ping Cheng
Acked-by: Chase Douglas
Acked-by: Dmitry Torokhov
Signed-off-by: Henrik Rydberg
21 Aug, 2010
1 commit
-
Recent modprobe and udev versions allow to create device nodes
for modules which are not loaded. Only the first access will cause
the in-kernel module loader to pull-in the module. Systems which
never access the device node will not needlessly load the module,
and no longer need init scripts or other facilities to unconditionally
load it.Signed-off-by: Kay Sievers
Signed-off-by: Dmitry Torokhov
21 May, 2010
1 commit
-
Signed-off-by: Daniel Mack
Signed-off-by: Dmitry Torokhov
20 Oct, 2007
1 commit
-
get rid of input BIT* duplicate defines
use newly global defined macros for input layer. Also remove includes of
input.h from non-input sources only for BIT macro definiton. Define the
macro temporarily in local manner, all those local definitons will be
removed further in this patchset (to not break bisecting).
BIT macro will be globally defined (1<
Cc:
Acked-by: Jiri Kosina
Cc:
Acked-by: Marcel Holtmann
Cc:
Acked-by: Mauro Carvalho Chehab
Cc:
Cc:
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
03 May, 2007
1 commit
-
uinput.h relies on structures found in input.h, so pull in the header
Signed-off-by: Mike Frysinger
Signed-off-by: Dmitry Torokhov
19 Jul, 2006
1 commit
-
The userspace interface of the force feedback part is changed and
documentation in uinput.h is updated accordingly. MODULE_VERSION
is also incremented to reflect the revision.Signed-off-by: Anssi Hannula
Signed-off-by: Dmitry Torokhov
19 Feb, 2006
1 commit
-
Signed-off-by: Dmitry Torokhov
20 Nov, 2005
2 commits
-
Signed-off-by: Dmitry Torokhov
-
Also introduce proper locking when creating/deleting device.
Signed-off-by: Dmitry Torokhov
30 Jun, 2005
1 commit
-
wakeups in force feedback code.
Signed-off-by: Dmitry Torokhov
17 Apr, 2005
1 commit
-
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.Let it rip!