Home
last modified time | relevance | path

Searched refs:epoll_fd (Results 1 – 6 of 6) sorted by relevance

/device/google/cuttlefish/guest/hals/gps/
Dgps_thread.h59 static inline int epoll_register(int epoll_fd, int fd) { in epoll_register() argument
68 ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev); in epoll_register()
73 static inline int epoll_deregister(int epoll_fd, int fd) { in epoll_deregister() argument
76 ret = epoll_ctl(epoll_fd, EPOLL_CTL_DEL, fd, NULL); in epoll_deregister()
Dgps_thread.cpp112 int epoll_fd = epoll_create(2); in gps_state_thread() local
120 epoll_register(epoll_fd, control_fd); in gps_state_thread()
121 epoll_register(epoll_fd, gps_fd); in gps_state_thread()
127 nevents = epoll_wait(epoll_fd, events, 2, 500); in gps_state_thread()
198 epoll_deregister(epoll_fd, control_fd); in gps_state_thread()
199 epoll_deregister(epoll_fd, gps_fd); in gps_state_thread()
/device/google/bonito/usb/
DUsb.cpp589 int epoll_fd, uevent_fd; in work() local
611 epoll_fd = epoll_create(64); in work()
612 if (epoll_fd == -1) { in work()
617 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, uevent_fd, &ev) == -1) { in work()
625 nevents = epoll_wait(epoll_fd, events, 64, -1); in work()
643 if (epoll_fd >= 0) close(epoll_fd); in work()
/device/google/wahoo/usb/
DUsb.cpp624 int epoll_fd, uevent_fd; in work() local
646 epoll_fd = epoll_create(64); in work()
647 if (epoll_fd == -1) { in work()
652 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, uevent_fd, &ev) == -1) { in work()
660 nevents = epoll_wait(epoll_fd, events, 64, -1); in work()
678 if (epoll_fd >= 0) close(epoll_fd); in work()
/device/google/crosshatch/usb/
DUsb.cpp593 int epoll_fd, uevent_fd; in work() local
615 epoll_fd = epoll_create1(EPOLL_CLOEXEC); in work()
616 if (epoll_fd == -1) { in work()
621 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, uevent_fd, &ev) == -1) { in work()
629 nevents = epoll_wait(epoll_fd, events, 64, -1); in work()
647 if (epoll_fd >= 0) close(epoll_fd); in work()
/device/google/coral/usb/
DUsb.cpp664 int epoll_fd, uevent_fd; in work() local
686 epoll_fd = epoll_create(64); in work()
687 if (epoll_fd == -1) { in work()
692 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, uevent_fd, &ev) == -1) { in work()
700 nevents = epoll_wait(epoll_fd, events, 64, -1); in work()
719 if (epoll_fd >= 0) in work()
720 close(epoll_fd); in work()