Lines Matching defs:events
79 /* All objects we use in epoll events start with this value, so that
121 uint32_t events;
160 * ordered for the earliest times the events may be
523 uint32_t events) {
532 ev.events = events;
536 ev.events |= EPOLLONESHOT;
693 ev.events = EPOLLIN;
963 uint32_t events,
972 assert_return(!(events & ~(EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLPRI|EPOLLERR|EPOLLHUP|EPOLLET)), -EINVAL);
983 s->io.events = events;
988 r = source_io_register(s, s->enabled, events);
1005 events all across the system can be coalesced into a single
1008 with synced clocks timer events are distributed a
1037 ev.events = EPOLLIN;
1469 r = source_io_register(s, s->enabled, s->io.events);
1482 _public_ int sd_event_source_get_io_events(sd_event_source *s, uint32_t* events) {
1484 assert_return(events, -EINVAL);
1488 *events = s->io.events;
1492 _public_ int sd_event_source_set_io_events(sd_event_source *s, uint32_t events) {
1497 assert_return(!(events & ~(EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLPRI|EPOLLERR|EPOLLHUP|EPOLLET)), -EINVAL);
1502 if (s->io.events == events && !(events & EPOLLET))
1506 r = source_io_register(s, s->enabled, events);
1511 s->io.events = events;
1668 r = source_io_register(s, m, s->io.events);
2028 * necessary to handle EPOLLONESHOT events properly where
2040 static int flush_timer(sd_event *e, int fd, uint32_t events, usec_t *next) {
2047 assert_return(events == EPOLLIN, -EIO);
2164 static int process_signal(sd_event *e, struct signal_data *d, uint32_t events) {
2169 assert_return(events == EPOLLIN, -EIO);
2536 r = flush_timer(e, e->watchdog_fd, ev_queue[i].events, NULL);
2543 r = process_io(e, ev_queue[i].data.ptr, ev_queue[i].events);
2548 r = flush_timer(e, d->fd, ev_queue[i].events, &d->next);
2553 r = process_signal(e, ev_queue[i].data.ptr, ev_queue[i].events);
2858 ev.events = EPOLLIN;