Lines Matching refs:poll_fds
51 struct pollfd poll_fds[MAX_CLIENTS]; variable
114 poll_fds[SOCKET_FD_IDX].fd = socket_fd; in daemon_init()
115 poll_fds[SOCKET_FD_IDX].events = POLLIN | POLLPRI; in daemon_init()
116 poll_fds[SOCKET_FD_IDX].revents = 0; in daemon_init()
149 cl->sock = handle_new_connection(poll_fds[SOCKET_FD_IDX].fd); in daemon_add_client()
151 poll_fds[nr_poll_fds].fd = cl->sock; in daemon_add_client()
152 poll_fds[nr_poll_fds].events = POLLIN; in daemon_add_client()
153 poll_fds[nr_poll_fds].revents = 0; in daemon_add_client()
160 poll_fds[SOCKET_FD_IDX].events = 0; in daemon_add_client()
197 poll_fds[i] = poll_fds[nr_poll_fds - 1]; in daemon_remove_client()
211 poll_fds[SOCKET_FD_IDX].events = POLLIN | POLLPRI; in daemon_remove_client()
297 ret = poll(poll_fds, nr_poll_fds, INFTIM); in daemon_func()
303 if (poll_fds[i].revents == 0) in daemon_func()