Lines Matching refs:pollfds
113 struct zsock_pollfd pollfds[2]; in process_dns() local
124 memset(pollfds, 0, sizeof(pollfds)); in process_dns()
125 pollfds[0].fd = sock_v4; in process_dns()
126 pollfds[0].events = ZSOCK_POLLIN; in process_dns()
127 pollfds[1].fd = sock_v6; in process_dns()
128 pollfds[1].events = ZSOCK_POLLIN; in process_dns()
132 ret = zsock_poll(pollfds, ARRAY_SIZE(pollfds), -1); in process_dns()
137 for (idx = 0; idx < ARRAY_SIZE(pollfds); idx++) { in process_dns()
138 if (pollfds[idx].revents & ZSOCK_POLLIN) { in process_dns()
139 if (pollfds[idx].fd == sock_v4) { in process_dns()
147 ret = zsock_recvfrom(pollfds[idx].fd, in process_dns()