Lines Matching refs:events
34 ARRAY(struct kevent) events;
47 i_array_init(&ctx->events, initial_fd_count);
54 array_free(&ioloop->handler_context->events);
74 /* allow kevent() to return the maximum number of events
79 array_append_zero(&ctx->events);
102 instead of appending to the events array */
113 struct kevent *events;
126 /* wait for events */
127 events = array_get_modifiable(&ctx->events, &events_count);
130 ret = kevent (ctx->kq, NULL, 0, events, events_count, &ts);
132 i_panic("kevent(events=%u, ts=%ld.%u) failed: %m",
145 io = (void *)events[i].udata;
154 /* io_loop_handle_add() may cause events array reallocation,
156 event = array_idx(&ctx->events, i);