/external/grpc-grpc/test/core/iomgr/ |
D | wakeup_fd_cv_test.cc | 104 struct pollfd pfds[6]; in test_poll_cv_trigger() local 117 pfds[0].fd = cvfd1.read_fd; in test_poll_cv_trigger() 118 pfds[1].fd = cvfd2.read_fd; in test_poll_cv_trigger() 119 pfds[2].fd = 20; in test_poll_cv_trigger() 120 pfds[3].fd = 30; in test_poll_cv_trigger() 121 pfds[4].fd = cvfd3.read_fd; in test_poll_cv_trigger() 122 pfds[5].fd = 50; in test_poll_cv_trigger() 124 pfds[0].events = 0; in test_poll_cv_trigger() 125 pfds[1].events = POLLIN; in test_poll_cv_trigger() 126 pfds[2].events = POLLIN | POLLHUP; in test_poll_cv_trigger() [all …]
|
/external/ltp/testcases/kernel/syscalls/lseek/ |
D | lseek02.c | 45 static int pfds[2]; variable 61 {&pfds[0], SEEK_SET, ESPIPE}, 62 {&pfds[0], SEEK_CUR, ESPIPE}, 63 {&pfds[0], SEEK_END, ESPIPE}, 95 SAFE_PIPE(pfds); in setup() 108 if (pfds[0] > 0) in cleanup() 109 SAFE_CLOSE(pfds[0]); in cleanup() 111 if (pfds[1] > 0) in cleanup() 112 SAFE_CLOSE(pfds[1]); in cleanup()
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | trace_helpers.c | 178 struct pollfd *pfds; in perf_event_poller_multi() local 183 pfds = calloc(num_fds, sizeof(*pfds)); in perf_event_poller_multi() 184 if (!pfds) in perf_event_poller_multi() 188 pfds[i].fd = fds[i]; in perf_event_poller_multi() 189 pfds[i].events = POLLIN; in perf_event_poller_multi() 193 poll(pfds, num_fds, 1000); in perf_event_poller_multi() 195 if (!pfds[i].revents) in perf_event_poller_multi() 208 free(pfds); in perf_event_poller_multi()
|
/external/toybox/toys/pending/ |
D | telnet.c | 291 struct pollfd pfds[2]; in telnet_main() local 314 pfds[0].fd = STDIN_FILENO; in telnet_main() 315 pfds[0].events = POLLIN; in telnet_main() 316 pfds[1].fd = TT.sfd; in telnet_main() 317 pfds[1].events = POLLIN; in telnet_main() 322 if(poll(pfds, 2, -1) < 0) { in telnet_main() 328 if(pfds[0].revents) { in telnet_main() 333 if(pfds[1].revents) { in telnet_main()
|
/external/bcc/src/cc/ |
D | perf_reader.c | 222 struct pollfd pfds[num_readers]; in perf_reader_poll() local 226 pfds[i].fd = readers[i]->fd; in perf_reader_poll() 227 pfds[i].events = POLLIN; in perf_reader_poll() 230 if (poll(pfds, num_readers, timeout) > 0) { in perf_reader_poll() 232 if (pfds[i].revents & POLLIN) in perf_reader_poll()
|
/external/ltp/testcases/kernel/syscalls/poll/ |
D | poll02.c | 35 struct pollfd pfds[] = { in sample_fn() local 40 TEST(poll(pfds, 1, sleep_ms)); in sample_fn()
|
/external/libcups/cups/ |
D | http-addrlist.c | 78 struct pollfd pfds[100]; /* Polled file descriptors */ in httpAddrConnect2() local 278 pfds[i].fd = fds[i]; in httpAddrConnect2() 279 pfds[i].events = POLLIN | POLLOUT; in httpAddrConnect2() 282 result = poll(pfds, (nfds_t)nfds, addrlist ? 100 : remaining > 250 ? 250 : remaining); in httpAddrConnect2() 314 DEBUG_printf(("pfds[%d].revents=%x\n", i, pfds[i].revents)); in httpAddrConnect2() 315 if (pfds[i].revents && !(pfds[i].revents & (POLLERR | POLLHUP))) in httpAddrConnect2() 332 else if (pfds[i].revents & (POLLERR | POLLHUP)) in httpAddrConnect2()
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | ev_poll_posix.cc | 1014 struct pollfd* pfds; local 1019 pfds = pollfd_space; 1023 const size_t pfd_size = sizeof(*pfds) * (pollset->fd_count + 2); 1026 pfds = static_cast<struct pollfd*>(buf); 1033 pfds[0].fd = GRPC_WAKEUP_FD_GET_READ_FD(&worker.wakeup_fd->fd); 1034 pfds[0].events = POLLIN; 1035 pfds[0].revents = 0; 1044 pfds[pfd_count].fd = pollset->fds[i]->fd; 1045 pfds[pfd_count].revents = 0; 1054 pfds[i].events = static_cast<short>( [all …]
|
/external/adhd/cras/src/alsa_plugin/ |
D | pcm_cras.c | 86 struct pollfd *pfds, in snd_pcm_cras_poll_revents() argument 93 if (pfds == NULL || nfds != 1 || revents == NULL) in snd_pcm_cras_poll_revents() 95 rc = read(pfds[0].fd, buf, 1); in snd_pcm_cras_poll_revents() 100 *revents = pfds[0].revents & ~(POLLIN | POLLOUT); in snd_pcm_cras_poll_revents() 101 if (pfds[0].revents & POLLIN) in snd_pcm_cras_poll_revents()
|
/external/blktrace/ |
D | blktrace.c | 166 struct pollfd *pfds; member 231 struct pollfd *pfds; member 1648 free(tp->pfds); in close_ios() 1660 tp->pfds = calloc(ndevs, sizeof(struct pollfd)); in open_ios() 1661 memset(tp->pfds, 0, ndevs * sizeof(struct pollfd)); in open_ios() 1665 pfd = tp->pfds; in open_ios() 1721 struct pollfd *pfd = tp->pfds; in handle_pfds_file() 1764 struct pollfd *pfd = tp->pfds; in handle_pfds_netclient() 1798 struct pollfd *pfd = tp->pfds; in handle_pfds_entries() 1856 ndone = poll(tp->pfds, ndevs, to_val); in thread_main() [all …]
|
/external/grpc-grpc/test/cpp/end2end/ |
D | nonblocking_test.cc | 47 int maybe_assert_non_blocking_poll(struct pollfd* pfds, nfds_t nfds, in maybe_assert_non_blocking_poll() argument 52 return poll(pfds, nfds, timeout); in maybe_assert_non_blocking_poll()
|
/external/mesa3d/src/vulkan/wsi/ |
D | wsi_common_x11.c | 720 struct pollfd pfds; in x11_acquire_next_image_poll_x11() local 748 pfds.fd = xcb_get_file_descriptor(chain->conn); in x11_acquire_next_image_poll_x11() 749 pfds.events = POLLIN; in x11_acquire_next_image_poll_x11() 750 ret = poll(&pfds, 1, timeout / 1000 / 1000); in x11_acquire_next_image_poll_x11()
|
/external/adhd/cras/src/tests/ |
D | alsa_card_unittest.cc | 1020 struct pollfd *pfds, in snd_hctl_poll_descriptors() argument 1023 memcpy(pfds, snd_hctl_poll_descriptors_fds, num * sizeof(*pfds)); in snd_hctl_poll_descriptors()
|
D | alsa_io_unittest.cc | 2971 int snd_pcm_poll_descriptors(snd_pcm_t *pcm, struct pollfd *pfds, in snd_pcm_poll_descriptors() argument 2975 pfds[0].events = POLLIN; in snd_pcm_poll_descriptors() 2976 pfds[0].fd = 99; in snd_pcm_poll_descriptors()
|