From c6e11a0a80e70accc1cbcae582ab0e67635c5214 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 1 Jun 2017 09:28:57 +1000 Subject: [PATCH] uinput: make a note that the syspath we return is the input node And not the syspath for the /dev/input/eventX node Signed-off-by: Peter Hutterer --- libevdev/libevdev-uinput.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libevdev/libevdev-uinput.h b/libevdev/libevdev-uinput.h index d6d0072..8c0d892 100644 --- a/libevdev/libevdev-uinput.h +++ b/libevdev/libevdev-uinput.h @@ -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 * -- 2.34.1