Lines Matching refs:events
18 ARRAY(struct epoll_event) events;
27 i_array_init(&ctx->events, initial_fd_count);
55 array_free(&ioloop->handler_context->events);
65 int events = 0, i;
75 events |= IO_EPOLL_INPUT;
77 events |= IO_EPOLL_OUTPUT;
79 events |= IO_EPOLL_ERROR;
82 return events;
101 event.events = epoll_event_mask(*list);
117 /* allow epoll_wait() to return the maximum number of events
122 array_append_zero(&ctx->events);
140 event.events = epoll_event_mask(*list);
157 instead of appending to the events array */
166 struct epoll_event *events;
180 events = array_get_modifiable(&ctx->events, &events_count);
182 ret = epoll_wait(ctx->epfd, events, events_count, msecs);
201 /* io_loop_handle_add() may cause events array reallocation,
203 event = array_idx(&ctx->events, i);
212 if ((event->events & (EPOLLHUP | EPOLLERR)) != 0)
215 call = (event->events & EPOLLIN) != 0;
217 call = (event->events & EPOLLOUT) != 0;
219 call = (event->events & IO_EPOLL_ERROR) != 0;