Home
last modified time | relevance | path

Searched refs:pollfd (Results 1 – 25 of 176) sorted by relevance

12345678

/external/libevent/
Dpoll.c65 struct pollfd *event_set;
66 struct pollfd *event_set_copy;
116 struct pollfd *pfd = &pop->event_set[i]; in poll_check_ok()
130 struct pollfd *event_set; in poll_dispatch()
144 struct pollfd *tmp = mm_realloc(pop->event_set_copy, in poll_dispatch()
145 pop->event_count * sizeof(struct pollfd)); in poll_dispatch()
154 sizeof(struct pollfd)*nfds); in poll_dispatch()
220 struct pollfd *pfd = NULL; in poll_add()
230 struct pollfd *tmp_event_set; in poll_add()
240 tmp_event_count * sizeof(struct pollfd)); in poll_add()
[all …]
Ddevpoll.c57 struct pollfd *events;
60 struct pollfd *changes;
92 sizeof(struct pollfd) * devpollop->nchanges, 0) == -1) in devpoll_commit()
101 struct pollfd *pfd; in devpoll_queue()
146 devpollop->events = mm_calloc(nfiles, sizeof(struct pollfd)); in devpoll_init()
154 devpollop->changes = mm_calloc(nfiles, sizeof(struct pollfd)); in devpoll_init()
171 struct pollfd *events = devpollop->events; in devpoll_dispatch()
/external/adhd/cras/src/server/
Dcras_dbus.c22 struct pollfd pollfd; in dbus_watch_callback() local
24 pollfd.fd = dbus_watch_get_unix_fd(watch); in dbus_watch_callback()
25 pollfd.events = POLLIN | POLLOUT; in dbus_watch_callback()
27 r = poll(&pollfd, 1, 0); in dbus_watch_callback()
32 if (pollfd.revents & POLLIN) in dbus_watch_callback()
34 if (pollfd.revents & POLLOUT) in dbus_watch_callback()
Dcras_server.c70 struct pollfd *pollfd; member
89 struct pollfd *pollfd; member
233 poll_client->pollfd = NULL; in handle_new_connection()
278 new_cb->pollfd = NULL; in add_select_fd()
453 struct pollfd *pollfds; in cras_server_run()
562 elm->pollfd = &pollfds[num_pollfds]; in cras_server_run()
570 client_cb->pollfd = &pollfds[num_pollfds]; in cras_server_run()
604 if (elm->pollfd && elm->pollfd->revents & POLLIN) in cras_server_run()
609 client_cb->pollfd && in cras_server_run()
610 (client_cb->pollfd->revents & POLLIN)) in cras_server_run()
Dcras_rstream.c480 struct pollfd pollfd; in cras_rstream_flush_old_audio_messages() local
489 pollfd.fd = stream->fd; in cras_rstream_flush_old_audio_messages()
490 pollfd.events = POLLIN; in cras_rstream_flush_old_audio_messages()
493 err = poll(&pollfd, 1, 0); in cras_rstream_flush_old_audio_messages()
494 if (pollfd.revents & POLLIN) { in cras_rstream_flush_old_audio_messages()
/external/libchrome/base/
Dsync_socket_posix.cc155 struct pollfd pollfd; in ReceiveWithTimeout() local
156 pollfd.fd = handle_; in ReceiveWithTimeout()
157 pollfd.events = POLLIN; in ReceiveWithTimeout()
158 pollfd.revents = 0; in ReceiveWithTimeout()
167 const int poll_result = poll(&pollfd, 1, timeout_ms); in ReceiveWithTimeout()
181 DCHECK(pollfd.revents & (POLLIN | POLLHUP | POLLERR)) << pollfd.revents; in ReceiveWithTimeout()
/external/strace/tests-m32/
Dpoll.c54 print_pollfd_entering(const struct pollfd *const pfd) in print_pollfd_entering()
87 print_pollfd_array_entering(const struct pollfd *const pfd, in print_pollfd_array_entering()
111 print_pollfd_exiting(const struct pollfd *const pfd, in print_pollfd_exiting()
151 print_pollfd_array_exiting(const struct pollfd *const pfd, in print_pollfd_array_exiting()
185 const struct pollfd pfds0[] = { in main()
192 struct pollfd *const tail_fds0 = tail_memdup(pfds0, sizeof(pfds0)); in main()
245 struct pollfd pfds1[] = { in main()
249 struct pollfd *const tail_fds1 = tail_memdup(pfds1, sizeof(pfds1)); in main()
Dppoll.c75 struct pollfd *fds; in main()
120 const struct pollfd fds1[] = { in main()
192 const struct pollfd fds2[] = { in main()
/external/strace/tests-mx32/
Dpoll.c54 print_pollfd_entering(const struct pollfd *const pfd) in print_pollfd_entering()
87 print_pollfd_array_entering(const struct pollfd *const pfd, in print_pollfd_array_entering()
111 print_pollfd_exiting(const struct pollfd *const pfd, in print_pollfd_exiting()
151 print_pollfd_array_exiting(const struct pollfd *const pfd, in print_pollfd_array_exiting()
185 const struct pollfd pfds0[] = { in main()
192 struct pollfd *const tail_fds0 = tail_memdup(pfds0, sizeof(pfds0)); in main()
245 struct pollfd pfds1[] = { in main()
249 struct pollfd *const tail_fds1 = tail_memdup(pfds1, sizeof(pfds1)); in main()
Dppoll.c75 struct pollfd *fds; in main()
120 const struct pollfd fds1[] = { in main()
192 const struct pollfd fds2[] = { in main()
/external/strace/tests/
Dpoll.c54 print_pollfd_entering(const struct pollfd *const pfd) in print_pollfd_entering()
87 print_pollfd_array_entering(const struct pollfd *const pfd, in print_pollfd_array_entering()
111 print_pollfd_exiting(const struct pollfd *const pfd, in print_pollfd_exiting()
151 print_pollfd_array_exiting(const struct pollfd *const pfd, in print_pollfd_array_exiting()
185 const struct pollfd pfds0[] = { in main()
192 struct pollfd *const tail_fds0 = tail_memdup(pfds0, sizeof(pfds0)); in main()
245 struct pollfd pfds1[] = { in main()
249 struct pollfd *const tail_fds1 = tail_memdup(pfds1, sizeof(pfds1)); in main()
Dppoll.c75 struct pollfd *fds; in main()
120 const struct pollfd fds1[] = { in main()
192 const struct pollfd fds2[] = { in main()
/external/selinux/mcstrans/src/
Dmcstransd.c256 add_pollfd(struct pollfd **ufds, int *nfds, int connfd) in add_pollfd()
267 struct pollfd *tmp = (struct pollfd *)realloc(*ufds, in add_pollfd()
268 (*nfds+1)*sizeof(struct pollfd)); in add_pollfd()
286 adj_pollfds(struct pollfd **ufds, int *nfds) in adj_pollfds()
302 process_events(struct pollfd **ufds, int *nfds) in process_events()
381 struct pollfd *ufds = (struct pollfd *)malloc(sizeof(struct pollfd)); in process_connections()
/external/wpa_supplicant_8/src/utils/
Deloop.c84 struct pollfd *pollfds;
85 struct pollfd **pollfds_map;
284 struct pollfd **nmap; in eloop_sock_table_add_sock()
286 sizeof(struct pollfd *)); in eloop_sock_table_add_sock()
295 struct pollfd *n; in eloop_sock_table_add_sock()
298 sizeof(struct pollfd)); in eloop_sock_table_add_sock()
432 static struct pollfd * find_pollfd(struct pollfd **pollfds_map, int fd, int mx) in find_pollfd()
443 struct pollfd *pollfds, in eloop_sock_table_set_fds()
444 struct pollfd **pollfds_map, in eloop_sock_table_set_fds()
450 struct pollfd *pfd; in eloop_sock_table_set_fds()
[all …]
/external/ltp/testcases/kernel/syscalls/eventfd/
Deventfd01.c595 struct pollfd pollfd; in overflow_poll_test() local
606 pollfd.fd = evfd; in overflow_poll_test()
607 pollfd.events = POLLIN; in overflow_poll_test()
608 pollfd.revents = 0; in overflow_poll_test()
609 ret = poll(&pollfd, 1, 10000); in overflow_poll_test()
613 if (pollfd.revents & POLLERR) in overflow_poll_test()
/external/toybox/lib/
Dnet.c70 int xpoll(struct pollfd *fds, int nfds, int timeout) in xpoll()
91 struct pollfd pollfds[2]; in pollinate()
94 memset(pollfds, 0, 2*sizeof(struct pollfd)); in pollinate()
151 struct pollfd pfd; in xrecvwait()
/external/openssh/openbsd-compat/
Dbsd-poll.h34 typedef struct pollfd { struct
59 int poll(struct pollfd *, nfds_t, int); argument
/external/linux-kselftest/tools/testing/selftests/vm/
Duserfaultfd.c494 struct pollfd pollfd[2]; in uffd_poll_thread() local
501 pollfd[0].fd = uffd; in uffd_poll_thread()
502 pollfd[0].events = POLLIN; in uffd_poll_thread()
503 pollfd[1].fd = pipefd[cpu*2]; in uffd_poll_thread()
504 pollfd[1].events = POLLIN; in uffd_poll_thread()
507 ret = poll(pollfd, 2, -1); in uffd_poll_thread()
512 if (pollfd[1].revents & POLLIN) { in uffd_poll_thread()
513 if (read(pollfd[1].fd, &tmp_chr, 1) != 1) in uffd_poll_thread()
518 if (!(pollfd[0].revents & POLLIN)) in uffd_poll_thread()
520 pollfd[0].revents), exit(1); in uffd_poll_thread()
[all …]
/external/linux-kselftest/tools/testing/selftests/networking/timestamping/
Dtxtimestamp.c171 struct pollfd pollfd; in __poll() local
174 memset(&pollfd, 0, sizeof(pollfd)); in __poll()
175 pollfd.fd = fd; in __poll()
176 ret = poll(&pollfd, 1, cfg_poll_timeout); in __poll()
/external/strace/
Dpoll.c39 const struct pollfd *fds = elem_buf; in print_pollfd()
57 struct pollfd fds; in decode_poll_entering()
67 struct pollfd fds; in decode_poll_exiting()
/external/ltp/testcases/kernel/syscalls/poll/
Dpoll01.c39 struct pollfd outfds[] = { in verify_pollout()
63 struct pollfd infds[] = { in verify_pollin()
/external/curl/lib/
Dselect.h49 struct pollfd struct
84 int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms);
/external/v4l2_codec2/vda/
Dv4l2_device.cc143 struct pollfd pollfds[2]; in Poll()
145 int pollfd = -1; in Poll() local
155 pollfd = nfds; in Poll()
163 *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI); in Poll()
/external/ltp/testcases/kernel/syscalls/ppoll/
Dppoll01.c51 struct pollfd *fds; /* fds ppoll parameter */
70 static struct pollfd fds_good[1], fds_already_closed[1];
168 .fds = (struct pollfd *) -1,
/external/libusb/libusb/os/
Dpoll_windows.h67 struct pollfd { struct
94 int usbi_poll(struct pollfd *fds, unsigned int nfds, int timeout);

12345678