From f3004d29d1342ae4a6cf22eae1be9639acd4e8cd Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 28 Sep 2014 08:58:16 +0200 Subject: [PATCH] (Udev) add comment --- input/udev_input.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/input/udev_input.c b/input/udev_input.c index cacf9ee167..78c055b100 100644 --- a/input/udev_input.c +++ b/input/udev_input.c @@ -607,6 +607,9 @@ static bool open_devices(udev_input_t *udev, const char *type, device_handle_cb for (item = devs; item; item = udev_list_entry_get_next(item)) { const char *name = udev_list_entry_get_name(item); + + /* Get the filename of the /sys entry for the device + * and create a udev_device object (dev) representing it. */ struct udev_device *dev = udev_device_new_from_syspath(udev->udev, name); const char *devnode = udev_device_get_devnode(dev);