Lines Matching refs:ev
424 static int inotify_handler(sd_event_source *s, const struct inotify_event *ev, void *userdata) { in inotify_handler() argument
435 if (ev->mask & IN_Q_OVERFLOW) { in inotify_handler()
438 } else if (ev->mask & IN_CREATE) { in inotify_handler()
439 if (streq(ev->name, "sub")) in inotify_handler()
440 log_debug("inotify-handler <%s>: create on %s", description, ev->name); in inotify_handler()
444 assert_se(safe_atou(ev->name, &i) >= 0); in inotify_handler()
448 } else if (ev->mask & IN_DELETE) { in inotify_handler()
449 log_info("inotify-handler <%s>: delete of %s", description, ev->name); in inotify_handler()
450 assert_se(streq(ev->name, "sub")); in inotify_handler()
458 static int delete_self_handler(sd_event_source *s, const struct inotify_event *ev, void *userdata) { in delete_self_handler() argument
461 if (ev->mask & IN_Q_OVERFLOW) { in delete_self_handler()
464 } else if (ev->mask & IN_DELETE_SELF) { in delete_self_handler()
467 } else if (ev->mask & IN_IGNORED) { in delete_self_handler()
726 static int inotify_self_destroy_handler(sd_event_source *s, const struct inotify_event *ev, void *u… in inotify_self_destroy_handler() argument
729 assert_se(ev); in inotify_self_destroy_handler()
733 assert_se(FLAGS_SET(ev->mask, IN_ATTRIB)); in inotify_self_destroy_handler()