Searched refs:wait_fd (Results 1 – 4 of 4) sorted by relevance
38 struct pollfd wait_fd[1]; in getAsyncResponse() local39 wait_fd[0].fd = fd; in getAsyncResponse()40 wait_fd[0].events = POLLIN; in getAsyncResponse()43 ret = poll(wait_fd, 1, timeoutMs); in getAsyncResponse()44 revents = wait_fd[0].revents; in getAsyncResponse()
172 struct pollfd wait_fd[] = { in loop() local177 if (int ret = poll(wait_fd, std::size(wait_fd), kPollTimeoutMs); ret <= 0) { in loop()181 if (wait_fd[0].revents & (POLLIN | POLLERR)) { in loop()186 if (wait_fd[1].revents & (POLLIN | POLLERR)) { in loop()187 handlePacket(wait_fd[1].fd); in loop()
2209 struct pollfd wait_fd[1]; in getAsyncResponse() local2210 wait_fd[0].fd = fd; in getAsyncResponse()2211 wait_fd[0].events = POLLIN; in getAsyncResponse()2215 ret = poll(wait_fd, 1, -1); in getAsyncResponse()2216 revents = wait_fd[0].revents; in getAsyncResponse()
81 struct pollfd wait_fd = { .fd = fd, .events = POLLIN }; in getAsyncResponse() local83 poll(&wait_fd, 1, timeoutMs); in getAsyncResponse()84 if (wait_fd.revents & POLLIN) { in getAsyncResponse()