uinput: make a note that the syspath we return is the input node
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 31 May 2017 23:28:57 +0000 (09:28 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Sun, 2 Jul 2017 23:55:29 +0000 (09:55 +1000)
And not the syspath for the /dev/input/eventX node

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
libevdev/libevdev-uinput.h

index d6d00723ec1fc32b930d876010e928dcc9853558..8c0d89231f46b438f3c60e37eeb0bd506b32188c 100644 (file)
@@ -186,10 +186,15 @@ int libevdev_uinput_get_fd(const struct libevdev_uinput *uinput_dev);
  * ioctl not available, libevdev makes an educated guess.
  * The UI_GET_SYSNAME ioctl is available since Linux 3.15.
  *
+ * The syspath returned is the one of the input node itself
+ * (e.g. /sys/devices/virtual/input/input123), not the syspath of the device
+ * node returned with libevdev_uinput_get_devnode().
+ *
  * @note This function may return NULL if UI_GET_SYSNAME is not available.
  * In that case, libevdev uses ctime and the device name to guess devices.
  * To avoid false positives, wait at least wait at least 1.5s between
  * creating devices that have the same name.
+ *
  * @param uinput_dev A previously created uinput device.
  * @return The syspath for this device, including the preceding /sys
  *