Searched defs:epoll_fd (Results 1 - 2 of 2) sorted by relevance

/system/extras/tests/suspend_stress/
H A Dsuspend_stress.cpp102 int epoll_fd = epoll_create(1); local
103 if (epoll_fd < 0) {
110 int ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev);
137 ret = epoll_wait(epoll_fd, &out_ev, 1, -1);
/system/core/adb/
H A Dfdevent.c101 static int epoll_fd = -1; variable
106 epoll_fd = epoll_create(256);
108 if(epoll_fd < 0) {
114 fcntl(epoll_fd, F_SETFD, FD_CLOEXEC);
126 if(epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fde->fd, &ev)) {
146 epoll_ctl(epoll_fd, EPOLL_CTL_DEL, fde->fd, &ev);
172 if(epoll_ctl(epoll_fd, EPOLL_CTL_MOD, fde->fd, &ev)) {
177 if(epoll_ctl(epoll_fd, EPOLL_CTL_DEL, fde->fd, &ev)) {
187 if(epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fde->fd, &ev)) {
201 n = epoll_wait(epoll_fd, event
[all...]

Completed in 146 milliseconds