Lines Matching defs:notifier
3207 struct radv_notifier *notifier = &device->notifier;
3210 while (!notifier->quit) {
3215 length = read(notifier->fd, buf, BUF_LEN);
3228 inotify_rm_watch(notifier->fd, notifier->watch);
3229 notifier->watch = inotify_add_watch(notifier->fd, file, IN_MODIFY | IN_DELETE_SELF);
3248 struct radv_notifier *notifier = &device->notifier;
3252 notifier->fd = inotify_init1(IN_NONBLOCK);
3253 if (notifier->fd < 0)
3256 notifier->watch = inotify_add_watch(notifier->fd, file, IN_MODIFY | IN_DELETE_SELF);
3257 if (notifier->watch < 0)
3260 ret = thrd_create(¬ifier->thread, radv_notifier_thread_run, device);
3267 inotify_rm_watch(notifier->fd, notifier->watch);
3269 close(notifier->fd);
3279 struct radv_notifier *notifier = &device->notifier;
3281 if (!notifier->thread)
3284 notifier->quit = true;
3285 thrd_join(notifier->thread, NULL);
3286 inotify_rm_watch(notifier->fd, notifier->watch);
3287 close(notifier->fd);
3645 fprintf(stderr, "radv: Failed to initialize the notifier for RADV_FORCE_VRS_CONFIG_FILE!\n");