Lines Matching defs:wd
97 int wd;
104 wd = inotify_add_watch(inotify_fd, udev_device_get_devnode(dev), IN_CLOSE_WRITE);
105 if (wd < 0) {
111 snprintf(filename, sizeof(filename), UDEV_ROOT_RUN "/udev/watch/%d", wd);
118 udev_device_set_watch_handle(dev, wd);
122 int wd;
128 wd = udev_device_get_watch_handle(dev);
129 if (wd < 0)
133 inotify_rm_watch(inotify_fd, wd);
135 snprintf(filename, sizeof(filename), UDEV_ROOT_RUN "/udev/watch/%d", wd);
141 struct udev_device *udev_watch_lookup(struct udev *udev, int wd) {
146 if (inotify_fd < 0 || wd < 0)
149 snprintf(filename, sizeof(filename), UDEV_ROOT_RUN "/udev/watch/%d", wd);