Lines Matching refs:events
67 struct epoll_event *events;
134 epollop->events = malloc(INITIAL_NEVENTS * sizeof(struct epoll_event));
135 if (epollop->events == NULL) {
143 free(epollop->events);
185 struct epoll_event *events = epollop->events;
198 res = epoll_wait(epollop->epfd, events, epollop->nevents, timeout);
215 int what = events[i].events;
217 int fd = events[i].data.fd;
247 be ready for more events next time. */
251 new_events = realloc(epollop->events,
254 epollop->events = new_events;
269 int fd, op, events;
282 events = 0;
284 events |= EPOLLIN;
288 events |= EPOLLOUT;
293 events |= EPOLLIN;
295 events |= EPOLLOUT;
298 epev.events = events;
302 /* Update events responsible */
317 int fd, events, op;
329 events = 0;
332 events |= EPOLLIN;
334 events |= EPOLLOUT;
336 if ((events & (EPOLLIN|EPOLLOUT)) != (EPOLLIN|EPOLLOUT)) {
337 if ((events & EPOLLIN) && evep->evwrite != NULL) {
339 events = EPOLLOUT;
341 } else if ((events & EPOLLOUT) && evep->evread != NULL) {
343 events = EPOLLIN;
348 epev.events = events;
370 if (epollop->events)
371 free(epollop->events);