Lines Matching defs:events

87 	struct epoll_event *events;
113 short old, short events, void *p);
115 short old, short events, void *p);
169 epollop->events = mm_calloc(INITIAL_NEVENT, sizeof(struct epoll_event));
170 if (epollop->events == NULL) {
199 epev.events = EPOLLIN;
255 int op, events = 0;
260 events = epoll_op_table[idx].events;
262 if (!events) {
268 events |= EPOLLET;
272 epev.events = events;
274 event_debug(("Epoll %s(%d) on fd %d okay. [old events were %d; read change was %d; write change was %d; close change was %d]",
276 (int)epev.events,
294 (int)epev.events, ch->fd);
298 (int)epev.events,
315 (int)epev.events, ch->fd);
319 (int)epev.events,
331 (int)epev.events,
341 event_warn("Epoll %s(%d) on fd %d failed. Old events were %d; read change was %d (%s); write change was %d (%s); close change was %d (%s)",
343 (int)epev.events,
377 short old, short events, void *p)
383 if (events & EV_WRITE)
385 (events & EV_ET);
386 if (events & EV_READ)
388 (events & EV_ET);
389 if (events & EV_CLOSED)
391 (events & EV_ET);
398 short old, short events, void *p)
404 if (events & EV_WRITE)
406 if (events & EV_READ)
408 if (events & EV_CLOSED)
418 struct epoll_event *events = epollop->events;
463 res = epoll_wait(epollop->epfd, events, epollop->nevents, timeout);
480 int what = events[i].events;
483 if (events[i].data.fd == epollop->timerfd)
501 evmap_io_active_(base, events[i].data.fd, ev | EV_ET);
506 be ready for more events next time. */
510 new_events = mm_realloc(epollop->events,
513 epollop->events = new_events;
528 if (epollop->events)
529 mm_free(epollop->events);