Lines Matching refs:events
67 TAILQ_FOREACH(e, &ctx->events, next) {
69 ctx->fds[i].events = 0;
71 ctx->fds[i].events |= POLLIN;
73 ctx->fds[i].events |= POLLOUT;
98 epe.events = EPOLLIN;
100 epe.events |= EPOLLOUT;
104 TAILQ_FOREACH(e, &ctx->events, next) {
180 /* The order of events should not matter.
184 * we insert new events at the queue head as the link fd will be
186 TAILQ_INSERT_HEAD(&ctx->events, e, next);
209 TAILQ_FOREACH(e, &ctx->events, next) {
225 epe.events = EPOLLIN;
232 TAILQ_REMOVE(&ctx->events, e, next);
410 TAILQ_FOREACH(e, &ctx->events, next) {
423 TAILQ_FOREACH(e, &ctx->events, next) {
440 TAILQ_FOREACH(e, &ctx->events, next) {
443 epe.events = EPOLLIN;
445 epe.events |= EPOLLOUT;
469 TAILQ_INIT(&ctx->events);
494 while ((e = TAILQ_FIRST(&ctx->events))) {
495 TAILQ_REMOVE(&ctx->events, e, next);
601 /* Process any triggered events.
625 if (epe.events & EPOLLOUT && e->write_cb) {
629 if (epe.events &
638 TAILQ_FOREACH(e, &ctx->events, next) {