Searched refs:event_fd_ (Results 1 – 6 of 6) sorted by relevance
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_tls_frontend.cpp | 159 event_fd_.reset(eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC)); in startServer() 160 if (event_fd_.get() == -1) { in startServer() 161 PLOG(INFO) << "failed to create eventfd " << event_fd_.get(); in startServer() 176 pollfd fds[2] = {{.fd = event_fd_.get(), .events = POLLIN}, in requestHandler() 333 event_fd_.reset(); in stopServer() 362 if (const ssize_t rt = write(event_fd_.get(), &data, sizeof(data)); rt != sizeof(data)) { in sendToEventFd() 371 if (const ssize_t rt = read(event_fd_.get(), &data, sizeof(data)); rt != sizeof(data)) { in handleEventFd()
|
D | dns_responder.cpp | 616 event_fd_.reset(eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC)); in startServer() 617 if (event_fd_.get() == -1) { in startServer() 642 if (!addFd(event_fd_.get(), EPOLLIN)) { in startServer() 667 event_fd_.reset(); in stopServer() 716 if (fd == event_fd_.get() && (events & (EPOLLIN | EPOLLERR))) { in requestHandler() 1198 if (const ssize_t rt = write(event_fd_.get(), &data, sizeof(data)); rt != sizeof(data)) { in sendToEventFd() 1207 if (const ssize_t rt = read(event_fd_.get(), &data, sizeof(data)); rt != sizeof(data)) { in handleEventFd()
|
D | dns_tls_frontend.h | 96 android::base::unique_fd event_fd_; variable
|
D | dns_responder.h | 350 android::base::unique_fd event_fd_; variable
|
/packages/modules/adb/client/pairing/tests/ |
D | pairing_server.cpp | 130 unique_fd event_fd_; member in adbwifi::pairing::__anon0bb7e88c0111::PairingServerImpl 185 if (event_fd_.get() == -1) { in stopServer() 189 ssize_t rc = write(event_fd_.get(), &value, sizeof(value)); in stopServer() 205 event_fd_.reset(eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK)); in setupServer() 206 if (event_fd_ == -1) { in setupServer() 248 CHECK_EQ(0, epoll_ctl(epoll_fd_.get(), EPOLL_CTL_ADD, event_fd_.get(), &event)); in serverWorker() 270 int rc = TEMP_FAILURE_RETRY(read(event_fd_.get(), &dummy, sizeof(dummy))); in serverWorker()
|
/packages/modules/adb/pairing_connection/ |
D | pairing_server.cpp | 140 unique_fd event_fd_; member 204 if (event_fd_.get() == -1) { in StopServer() 208 ssize_t rc = write(event_fd_.get(), &value, sizeof(value)); in StopServer() 224 event_fd_.reset(eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK)); in SetupServer() 225 if (event_fd_ == -1) { in SetupServer() 268 CHECK_EQ(0, epoll_ctl(epoll_fd_.get(), EPOLL_CTL_ADD, event_fd_.get(), &event)); in ServerWorker() 290 int rc = TEMP_FAILURE_RETRY(read(event_fd_.get(), &dummy, sizeof(dummy))); in ServerWorker()
|