Lines Matching refs:io
23 struct io_file *io;
29 for (io = ioloop->io_files; io != NULL; io = io->next) {
30 if (io->fd <= ctx->highest_fd)
33 ctx->highest_fd = io->fd;
57 void io_loop_handle_add(struct io_file *io)
59 struct ioloop_handler_context *ctx = io->io.ioloop->handler_context;
60 enum io_condition condition = io->io.condition;
61 int fd = io->fd;
74 if (io->fd > ctx->highest_fd)
75 ctx->highest_fd = io->fd;
78 void io_loop_handle_remove(struct io_file *io, bool closed ATTR_UNUSED)
80 struct ioloop_handler_context *ctx = io->io.ioloop->handler_context;
81 enum io_condition condition = io->io.condition;
82 int fd = io->fd;
95 if (io->fd == ctx->highest_fd)
96 update_highest_fd(io->io.ioloop);
98 i_free(io);
110 struct io_file *io;
133 io = ioloop->io_files;
134 for (; io != NULL && ret > 0; io = ioloop->next_io_file) {
135 ioloop->next_io_file = io->next;
137 if (io_check_condition(ctx, io->fd, io->io.condition)) {
139 io_loop_call_io(&io->io);