Lines Matching refs:ev
73 struct epoll_event ev; in epoll_modify() local
91 ev.data.u64 = (uint64_t)(uint32_t)fd in epoll_modify()
93 ev.events = (nev & EV_READ ? EPOLLIN : 0) in epoll_modify()
96 …ect_true (!epoll_ctl (backend_fd, oev && oldmask != nev ? EPOLL_CTL_MOD : EPOLL_CTL_ADD, fd, &ev))) in epoll_modify()
105 if (!epoll_ctl (backend_fd, EPOLL_CTL_ADD, fd, &ev)) in epoll_modify()
115 if (!epoll_ctl (backend_fd, EPOLL_CTL_MOD, fd, &ev)) in epoll_modify()
166 struct epoll_event *ev = epoll_events + i; in epoll_poll() local
168 int fd = (uint32_t)ev->data.u64; /* mask out the lower 32 bits */ in epoll_poll()
170 int got = (ev->events & (EPOLLOUT | EPOLLERR | EPOLLHUP) ? EV_WRITE : 0) in epoll_poll()
171 | (ev->events & (EPOLLIN | EPOLLERR | EPOLLHUP) ? EV_READ : 0); in epoll_poll()
179 if (expect_false ((uint32_t)anfds [fd].egen != (uint32_t)(ev->data.u64 >> 32))) in epoll_poll()
199 ev->events = (want & EV_READ ? EPOLLIN : 0) in epoll_poll()
204 if (epoll_ctl (backend_fd, want ? EPOLL_CTL_MOD : EPOLL_CTL_DEL, fd, ev)) in epoll_poll()