Lines Matching refs:pollfds
994 struct pollfd pollfds[2]; in read_with_wake_fd() local
1000 pollfds[0].fd = wake_fd; in read_with_wake_fd()
1001 pollfds[0].events = POLLIN; in read_with_wake_fd()
1004 pollfds[1].fd = read_fd; in read_with_wake_fd()
1005 pollfds[1].events = POLLIN; in read_with_wake_fd()
1008 rc = poll(pollfds, nfds, -1); in read_with_wake_fd()
1011 if (read_fd >= 0 && pollfds[1].revents & POLLIN) { in read_with_wake_fd()
1016 if (pollfds[0].revents & POLLIN) { in read_with_wake_fd()
1976 struct pollfd pollfds[4]; in client_thread() local
1990 pollfds[num_pollfds].fd = rc; in client_thread()
1991 pollfds[num_pollfds].events = POLLIN; in client_thread()
1992 pollfds[num_pollfds].revents = 0; in client_thread()
1999 server_fill_pollfd(client, &(pollfds[num_pollfds])); in client_thread()
2004 pollfds[num_pollfds].fd = client->command_fds[0]; in client_thread()
2005 pollfds[num_pollfds].events = POLLIN; in client_thread()
2006 pollfds[num_pollfds].revents = 0; in client_thread()
2011 pollfds[num_pollfds].fd = client->stream_fds[0]; in client_thread()
2012 pollfds[num_pollfds].events = POLLIN; in client_thread()
2013 pollfds[num_pollfds].revents = 0; in client_thread()
2017 rc = poll(pollfds, num_pollfds, -1); in client_thread()
2024 if (pollfds[i].revents) { in client_thread()
2025 cbs[i](client, pollfds[i].revents); in client_thread()