Searched refs:epoll_fd_ (Results 1 – 6 of 6) sorted by relevance
/system/core/init/ |
D | epoll.cpp | 32 if (epoll_fd_ >= 0) return Success(); in Open() 33 epoll_fd_.reset(epoll_create1(EPOLL_CLOEXEC)); in Open() 35 if (epoll_fd_ == -1) { in Open() 54 if (epoll_ctl(epoll_fd_, EPOLL_CTL_ADD, fd, &ev) == -1) { in RegisterHandler() 63 if (epoll_ctl(epoll_fd_, EPOLL_CTL_DEL, fd, nullptr) == -1) { in UnregisterHandler() 78 auto nr = TEMP_FAILURE_RETRY(epoll_wait(epoll_fd_, &ev, 1, timeout_ms)); in Wait()
|
D | epoll.h | 46 android::base::unique_fd epoll_fd_;
|
/system/bt/gd/os/linux_generic/ |
D | reactor.cc | 54 : epoll_fd_(0), in Reactor() 58 RUN_NO_INTR(epoll_fd_ = epoll_create1(EPOLL_CLOEXEC)); in Reactor() 59 ASSERT_LOG(epoll_fd_ != -1, "could not create epoll fd: %s", strerror(errno)); in Reactor() 66 RUN_NO_INTR(result = epoll_ctl(epoll_fd_, EPOLL_CTL_ADD, control_fd_, &control_epoll_event)); in Reactor() 72 RUN_NO_INTR(result = epoll_ctl(epoll_fd_, EPOLL_CTL_DEL, control_fd_, nullptr)); in ~Reactor() 78 RUN_NO_INTR(result = close(epoll_fd_)); in ~Reactor() 90 RUN_NO_INTR(count = epoll_wait(epoll_fd_, events, kEpollMaxEvents, -1)); in Run() 153 RUN_NO_INTR(register_fd = epoll_ctl(epoll_fd_, EPOLL_CTL_ADD, fd, &event)); in Register() 167 RUN_NO_INTR(result = epoll_ctl(epoll_fd_, EPOLL_CTL_DEL, reactable->fd_, nullptr)); in Unregister() 205 RUN_NO_INTR(modify_fd = epoll_ctl(epoll_fd_, EPOLL_CTL_MOD, reactable->fd_, &event)); in ModifyRegistration()
|
/system/bt/gd/os/ |
D | reactor.h | 70 int epoll_fd_; variable
|
/system/netd/resolv/dns_responder/ |
D | dns_responder.cpp | 631 epoll_fd_.reset(epoll_create1(EPOLL_CLOEXEC)); in startServer() 632 if (epoll_fd_.get() < 0) { in startServer() 633 APLOGI("epoll_create1() failed on fd %d", epoll_fd_.get()); in startServer() 667 epoll_fd_.reset(); in stopServer() 695 int n = epoll_wait(epoll_fd_.get(), evs, EPOLL_MAX_EVENTS, poll_timeout_ms_); in requestHandler() 928 if (epoll_ctl(epoll_fd_.get(), EPOLL_CTL_ADD, fd, &ev) < 0) { in addFd()
|
D | dns_responder.h | 170 android::base::unique_fd epoll_fd_; variable
|