Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/tests/dns_responder/
Ddns_tls_frontend.cpp159 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()
Ddns_responder.cpp616 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()
Ddns_tls_frontend.h96 android::base::unique_fd event_fd_; variable
Ddns_responder.h350 android::base::unique_fd event_fd_; variable
/packages/modules/adb/client/pairing/tests/
Dpairing_server.cpp130 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/
Dpairing_server.cpp140 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()