]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita1ea8d1de8cb94c666c134c50f14ea1cc9a79354
treea34ddb7b967f9bed73ef31546f81b0bababef773
parent3c77486537d76bdfc53e33a2d9ba91f84b61b68a
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