Lines Matching refs:inotify_fd
33 static int inotify_fd = -1;
40 inotify_fd = inotify_init1(IN_CLOEXEC);
41 if (inotify_fd < 0)
43 return inotify_fd;
50 if (inotify_fd < 0)
100 if (inotify_fd < 0)
104 wd = inotify_add_watch(inotify_fd, udev_device_get_devnode(dev), IN_CLOSE_WRITE);
107 inotify_fd, udev_device_get_devnode(dev), IN_CLOSE_WRITE);
125 if (inotify_fd < 0)
133 inotify_rm_watch(inotify_fd, wd);
146 if (inotify_fd < 0 || wd < 0)