Lines Matching refs:event
44 static int clock_state_update(ClockState *sp, sd_event *event);
60 static void process_inotify_event(sd_event *event, ClockState *sp, struct inotify_event *e) { in process_inotify_event() argument
72 clock_state_update(sp, event); in process_inotify_event()
80 sd_event *event = sd_event_source_get_event(s); in inotify_handler() local
93 process_inotify_event(event, sp, e); in inotify_handler()
100 sd_event *event) { in clock_state_update() argument
160 r = sd_event_add_io(event, &sp->timerfd_event_source, sp->timerfd_fd, in clock_state_update()
173 (void) sd_event_exit(event, r); in clock_state_update()
178 _cleanup_(sd_event_unrefp) sd_event *event = NULL; in run()
189 r = sd_event_default(&event); in run()
193 r = sd_event_add_signal(event, NULL, SIGTERM, NULL, NULL); in run()
197 r = sd_event_add_signal(event, NULL, SIGINT, NULL, NULL); in run()
201 r = sd_event_set_watchdog(event, true); in run()
211 r = sd_event_add_io(event, &state.inotify_event_source, state.inotify_fd, in run()
224 r = clock_state_update(&state, event); in run()
226 r = sd_event_loop(event); in run()