Searched refs:epoll_fd_ (Results 1 – 4 of 4) sorted by relevance
/system/core/init/ |
D | epoll.cpp | 32 if (epoll_fd_ >= 0) return {}; in Open() 33 epoll_fd_.reset(epoll_create1(EPOLL_CLOEXEC)); in Open() 35 if (epoll_fd_ == -1) { in Open() 55 if (epoll_ctl(epoll_fd_, EPOLL_CTL_ADD, fd, &ev) == -1) { in RegisterHandler() 64 if (epoll_ctl(epoll_fd_, EPOLL_CTL_DEL, fd, nullptr) == -1) { in UnregisterHandler() 81 auto num_events = TEMP_FAILURE_RETRY(epoll_wait(epoll_fd_, ev, max_events, timeout_ms)); in Wait()
|
D | epoll.h | 49 android::base::unique_fd epoll_fd_;
|
/system/bt/gd/os/linux_generic/ |
D | reactor.cc | 61 Reactor::Reactor() : epoll_fd_(0), control_fd_(0), is_running_(false) { in Reactor() 62 RUN_NO_INTR(epoll_fd_ = epoll_create1(EPOLL_CLOEXEC)); in Reactor() 63 ASSERT_LOG(epoll_fd_ != -1, "could not create epoll fd: %s", strerror(errno)); in Reactor() 70 RUN_NO_INTR(result = epoll_ctl(epoll_fd_, EPOLL_CTL_ADD, control_fd_, &control_epoll_event)); in Reactor() 76 RUN_NO_INTR(result = epoll_ctl(epoll_fd_, EPOLL_CTL_DEL, control_fd_, nullptr)); in ~Reactor() 82 RUN_NO_INTR(result = close(epoll_fd_)); in ~Reactor() 99 RUN_NO_INTR(count = epoll_wait(epoll_fd_, events, kEpollMaxEvents, timeout_ms)); in Run() 182 RUN_NO_INTR(register_fd = epoll_ctl(epoll_fd_, EPOLL_CTL_ADD, fd, &event)); in Register() 197 RUN_NO_INTR(result = epoll_ctl(epoll_fd_, EPOLL_CTL_DEL, reactable->fd_, nullptr)); in Unregister() 266 RUN_NO_INTR(modify_fd = epoll_ctl(epoll_fd_, EPOLL_CTL_MOD, reactable->fd_, &event)); in ModifyRegistration()
|
/system/bt/gd/os/ |
D | reactor.h | 76 int epoll_fd_; variable
|