Input: uinput - add UI_GET_SYSNAME ioctl to retrieve the sysfs path
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 31 Jan 2014 01:20:24 +0000 (17:20 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 12 Feb 2014 23:00:34 +0000 (15:00 -0800)
commite3480a61fca72d40d6dc4baaf37e94fcbfa95e19
treea34ddb7b967f9bed73ef31546f81b0bababef773
parent9d51e801dba0c79ae979ef2f6928e402eb41009b
Input: uinput - add UI_GET_SYSNAME ioctl to retrieve the sysfs path

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 <benjamin.tissoires@redhat.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/uinput.c
include/linux/uinput.h
include/uapi/linux/uinput.h
This page took 0.025581 seconds and 5 git commands to generate.