/bootable/recovery/minui/ |
events.c | 42 static int epollfd; variable 60 epollfd = epoll_create(MAX_DEVICES + MAX_MISC_FDS); 61 if (epollfd == -1) 89 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &ev)) { 105 close(epollfd); 106 epollfd = -1; 123 ret = epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &ev); 137 return epollfd; 147 close(epollfd); 152 npolledevents = epoll_wait(epollfd, polledevents, ev_count, timeout) [all...] |
/frameworks/base/services/core/jni/ |
com_android_server_AlarmManagerService.cpp | 83 AlarmImplTimerFd(int fds[N_ANDROID_TIMERFDS], int epollfd) : 84 AlarmImpl(fds, N_ANDROID_TIMERFDS), epollfd(epollfd) { } 92 int epollfd; member in class:android::AlarmImplTimerFd 135 epoll_ctl(epollfd, EPOLL_CTL_DEL, fds[i], NULL); 137 close(epollfd); 208 int nevents = epoll_wait(epollfd, events, N_ANDROID_TIMERFDS, -1); 288 int epollfd; local 291 epollfd = epoll_create(N_ANDROID_TIMERFDS); 292 if (epollfd < 0) [all...] |
/system/core/healthd/ |
healthd.cpp | 59 static int epollfd; variable 141 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &ev) == -1) { 285 nevents = epoll_wait(epollfd, events, eventct, timeout); 309 epollfd = epoll_create(MAX_EPOLL_EVENTS); 310 if (epollfd == -1) {
|
healthd_mode_charger.cpp | 677 int epollfd; local 685 epollfd = ev_get_epollfd(); 686 healthd_register_event(epollfd, charger_event_handler);
|
/external/wpa_supplicant_8/src/utils/ |
eloop.c | 82 int epollfd; member in struct:eloop_data 153 eloop.epollfd = epoll_create1(0); 154 if (eloop.epollfd < 0) { 281 if (epoll_ctl(eloop.epollfd, EPOLL_CTL_ADD, sock, &ev) < 0) { 320 if (epoll_ctl(eloop.epollfd, EPOLL_CTL_DEL, sock, NULL) < 0) { 960 res = epoll_wait(eloop.epollfd, eloop.epoll_events, 1067 close(eloop.epollfd);
|
/system/core/lmkd/ |
lmkd.c | 77 static int epollfd; variable 434 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, ctrl_dfd, &epev) == -1) { 723 ret = epoll_ctl(epollfd, EPOLL_CTL_ADD, evfd, &epev); 752 epollfd = epoll_create(MAX_EPOLL_EVENTS); 753 if (epollfd == -1) { 772 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, ctrl_lfd, &epev) == -1) { 803 nevents = epoll_wait(epollfd, events, maxevents, -1);
|