Lines Matching refs:poll_fds
153 struct pollfd poll_fds[kMaxClientSockets]; in ProcessMessages() local
154 memset(poll_fds, 0, sizeof(poll_fds)); in ProcessMessages()
155 poll_fds[0].fd = control_socket_fd; in ProcessMessages()
156 poll_fds[0].events = POLLIN; in ProcessMessages()
157 poll_fds[0].revents = 0; in ProcessMessages()
159 while (TEMP_FAILURE_RETRY(poll(poll_fds, poll_fds_count, -1)) >= 0) { in ProcessMessages()
160 if (poll_fds[0].revents & POLLIN) { in ProcessMessages()
170 poll_fds[poll_fds_count].fd = client_socket; in ProcessMessages()
171 poll_fds[poll_fds_count].events = POLLIN; in ProcessMessages()
172 poll_fds[poll_fds_count].revents = 0; in ProcessMessages()
187 if (poll_fds[i].revents & POLLIN) { in ProcessMessages()
188 if (!ProcessCommand(poll_fds[i].fd, nvram_manager)) { in ProcessMessages()
190 if (close(poll_fds[i].fd)) { in ProcessMessages()
194 poll_fds[i] = poll_fds[poll_fds_count]; in ProcessMessages()
197 poll_fds[i].revents = 0; in ProcessMessages()