Home
last modified time | relevance | path

Searched refs:epoll_fd_ (Results 1 – 8 of 8) sorted by relevance

/system/core/init/
Depoll.cpp32 if (epoll_fd_ >= 0) return {}; 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()
80 auto num_events = TEMP_FAILURE_RETRY(epoll_wait(epoll_fd_, ev, max_events, timeout_ms)); in Wait()
Depoll.h46 android::base::unique_fd epoll_fd_;
/system/bt/gd/os/linux_generic/
Dreactor.cc61 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()
181 RUN_NO_INTR(register_fd = epoll_ctl(epoll_fd_, EPOLL_CTL_ADD, fd, &event)); in Register()
196 RUN_NO_INTR(result = epoll_ctl(epoll_fd_, EPOLL_CTL_DEL, reactable->fd_, nullptr)); in Unregister()
265 RUN_NO_INTR(modify_fd = epoll_ctl(epoll_fd_, EPOLL_CTL_MOD, reactable->fd_, &event)); in ModifyRegistration()
/system/core/adb/fdevent/
Dfdevent_epoll.cpp39 epoll_fd_.reset(epoll_create1(EPOLL_CLOEXEC)); in fdevent_context_epoll()
81 if (epoll_ctl(epoll_fd_.get(), EPOLL_CTL_ADD, fde->fd.get(), &ev) != 0) { in Register()
87 if (epoll_ctl(epoll_fd_.get(), EPOLL_CTL_DEL, fde->fd.get(), nullptr) != 0) { in Unregister()
102 if (epoll_ctl(epoll_fd_.get(), EPOLL_CTL_MOD, fde->fd.get(), &ev) != 0) { in Set()
129 rc = epoll_wait(epoll_fd_.get(), epoll_events.data(), epoll_events.size(), timeout_ms); in Loop()
Dfdevent_epoll.h51 unique_fd epoll_fd_;
/system/core/adb/client/pairing/tests/
Dpairing_server.cpp128 unique_fd epoll_fd_; member in adbwifi::pairing::__anon7a073c1b0111::PairingServerImpl
199 epoll_fd_.reset(epoll_create1(EPOLL_CLOEXEC)); in setupServer()
200 if (epoll_fd_ == -1) { in setupServer()
241 CHECK_EQ(0, epoll_ctl(epoll_fd_.get(), EPOLL_CTL_ADD, server_fd_.get(), &event)); in serverWorker()
248 CHECK_EQ(0, epoll_ctl(epoll_fd_.get(), EPOLL_CTL_ADD, event_fd_.get(), &event)); in serverWorker()
253 int rc = TEMP_FAILURE_RETRY(epoll_wait(epoll_fd_.get(), events, 2, -1)); in serverWorker()
/system/core/adb/pairing_connection/
Dpairing_server.cpp138 unique_fd epoll_fd_; member
218 epoll_fd_.reset(epoll_create1(EPOLL_CLOEXEC)); in SetupServer()
219 if (epoll_fd_ == -1) { in SetupServer()
261 CHECK_EQ(0, epoll_ctl(epoll_fd_.get(), EPOLL_CTL_ADD, server_fd_.get(), &event)); in ServerWorker()
268 CHECK_EQ(0, epoll_ctl(epoll_fd_.get(), EPOLL_CTL_ADD, event_fd_.get(), &event)); in ServerWorker()
273 int rc = TEMP_FAILURE_RETRY(epoll_wait(epoll_fd_.get(), events, 2, -1)); in ServerWorker()
/system/bt/gd/os/
Dreactor.h76 int epoll_fd_; variable