Lines Matching defs:dev
63 struct udev_device *dev;
73 dev = udev_device_new_from_device_id(udev, device);
74 if (dev == NULL)
77 log_debug("restoring old watch on '%s'", udev_device_get_devnode(dev));
78 udev_watch_begin(udev, dev);
79 udev_device_unref(dev);
91 void udev_watch_begin(struct udev *udev, struct udev_device *dev) {
99 log_debug("adding watch on '%s'", udev_device_get_devnode(dev));
100 wd = inotify_add_watch(inotify_fd, udev_device_get_devnode(dev), IN_CLOSE_WRITE);
103 inotify_fd, udev_device_get_devnode(dev), IN_CLOSE_WRITE);
110 r = symlink(udev_device_get_id_filename(dev), filename);
114 udev_device_set_watch_handle(dev, wd);
117 void udev_watch_end(struct udev *udev, struct udev_device *dev) {
124 wd = udev_device_get_watch_handle(dev);
128 log_debug("removing watch on '%s'", udev_device_get_devnode(dev));
134 udev_device_set_watch_handle(dev, -1);