Home
last modified time | relevance | path

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

1234

/external/bluetooth/glib/gio/
Dgasynchelper.c81 GPollFD pollfd; member
103 fd_source->pollfd.revents != 0; in fd_source_check()
117 return (*func) (user_data, fd_source->pollfd.revents, fd_source->pollfd.fd); in fd_source_dispatch()
163 fd_source->pollfd.fd = fd; in _g_fd_source_new()
164 fd_source->pollfd.events = events; in _g_fd_source_new()
165 g_source_add_poll (source, &fd_source->pollfd); in _g_fd_source_new()
Dgcancellable.c415 g_cancellable_make_pollfd (GCancellable *cancellable, GPollFD *pollfd) in g_cancellable_make_pollfd() argument
418 g_return_if_fail (pollfd != NULL); in g_cancellable_make_pollfd()
430 g_io_channel_win32_make_pollfd (cancellable->read_channel, G_IO_IN, pollfd); in g_cancellable_make_pollfd()
435 pollfd->fd = g_cancellable_get_fd (cancellable); in g_cancellable_make_pollfd()
436 pollfd->events = G_IO_IN; in g_cancellable_make_pollfd()
438 pollfd->revents = 0; in g_cancellable_make_pollfd()
Dgcancellable.h74 GPollFD *pollfd);
/external/wpa_supplicant_8/src/utils/
Deloop.c63 struct pollfd *pollfds;
64 struct pollfd **pollfds_map;
155 struct pollfd **nmap; in eloop_sock_table_add_sock()
156 nmap = os_realloc(eloop.pollfds_map, sizeof(struct pollfd *) * in eloop_sock_table_add_sock()
166 struct pollfd *n; in eloop_sock_table_add_sock()
168 n = os_realloc(eloop.pollfds, sizeof(struct pollfd) * nmax); in eloop_sock_table_add_sock()
229 static struct pollfd * find_pollfd(struct pollfd **pollfds_map, int fd, int mx) in find_pollfd()
240 struct pollfd *pollfds, in eloop_sock_table_set_fds()
241 struct pollfd **pollfds_map, in eloop_sock_table_set_fds()
247 struct pollfd *pfd; in eloop_sock_table_set_fds()
[all …]
/external/chromium/third_party/libevent/
Ddevpoll.c65 struct pollfd *events;
68 struct pollfd *changes;
98 sizeof(struct pollfd) * devpollop->nchanges, 0) == -1) in devpoll_commit()
107 struct pollfd *pfd; in devpoll_queue()
154 devpollop->events = calloc(nfiles, sizeof(struct pollfd)); in devpoll_init()
171 devpollop->changes = calloc(nfiles, sizeof(struct pollfd)); in devpoll_init()
216 struct pollfd *events = devpollop->events; in devpoll_dispatch()
Dpoll.c60 struct pollfd *event_set;
127 struct pollfd *pfd = &pop->event_set[i]; in poll_check_ok()
208 struct pollfd *pfd = NULL; in poll_add()
218 struct pollfd *tmp_event_set; in poll_add()
230 tmp_event_count * sizeof(struct pollfd)); in poll_add()
313 struct pollfd *pfd = NULL; in poll_del()
352 sizeof(struct pollfd)); in poll_del()
/external/linux-tools-perf/util/
Devlist.h14 struct pollfd;
31 struct pollfd *pollfd; member
Devlist.c68 free(evlist->pollfd); in perf_evlist__exit()
70 evlist->pollfd = NULL; in perf_evlist__exit()
104 evlist->pollfd = malloc(sizeof(struct pollfd) * nfds); in perf_evlist__alloc_pollfd()
105 return evlist->pollfd != NULL ? 0 : -ENOMEM; in perf_evlist__alloc_pollfd()
111 evlist->pollfd[evlist->nr_fds].fd = fd; in perf_evlist__add_pollfd()
112 evlist->pollfd[evlist->nr_fds].events = POLLIN; in perf_evlist__add_pollfd()
387 if (evlist->pollfd == NULL && perf_evlist__alloc_pollfd(evlist) < 0) in perf_evlist__mmap()
/external/valgrind/main/memcheck/tests/
Dbadpoll.c12 struct pollfd* ufds = malloc(2 * sizeof(struct pollfd) - 1); in main()
/external/openssh/openbsd-compat/
Dbsd-poll.h34 typedef struct pollfd { struct
59 int poll(struct pollfd *, nfds_t, int); argument
/external/bluetooth/glib/glib/
Dgiounix.c65 GPollFD pollfd; member
140 GIOCondition poll_condition = watch->pollfd.revents; in g_io_unix_check()
163 (watch->pollfd.revents | buffer_condition) & watch->condition, in g_io_unix_dispatch()
354 watch->pollfd.fd = unix_channel->fd; in g_io_unix_create_watch()
355 watch->pollfd.events = condition; in g_io_unix_create_watch()
357 g_source_add_poll (source, &watch->pollfd); in g_io_unix_create_watch()
Dgpoll.c89 extern gint poll (struct pollfd *fds, guint nfsd, gint timeout);
127 return poll ((struct pollfd *)fds, nfds, timeout); in g_poll()
/external/libusb/libusb/
Dio.c1781 struct pollfd *fds; in handle_events()
1795 struct libusb_pollfd *pollfd = &ipollfd->pollfd; in handle_events() local
1796 int fd = pollfd->fd; in handle_events()
1799 fds[i].events = pollfd->events; in handle_events()
2191 ipollfd->pollfd.fd = fd; in usbi_add_pollfd()
2192 ipollfd->pollfd.events = events; in usbi_add_pollfd()
2211 if (ipollfd->pollfd.fd == fd) { in usbi_remove_pollfd()
/external/linux-tools-perf/bench/
Dsched-messaging.c81 struct pollfd pollfd = { .fd = wakefd, .events = POLLIN }; in ready() local
88 if (poll(&pollfd, 1, -1) != 1) in ready()
/external/openssh/
Datomicio.c57 struct pollfd pfd; in atomicio6()
103 struct pollfd pfd; in atomiciov6()
Dmonitor_fdpass.c61 struct pollfd pfd; in mm_send_fd()
123 struct pollfd pfd; in mm_receive_fd()
/external/kernel-headers/original/asm-arm/
Dpoll.h21 struct pollfd { struct
/external/kernel-headers/original/asm-generic/
Dpoll.h31 struct pollfd { struct
/external/bluetooth/bluez/src/
Dppoll.h7 static inline int compat_ppoll(struct pollfd *fds, nfds_t nfds, in compat_ppoll()
/external/bluetooth/glib/tests/
Dgio-test.c287 GPollFD pollfd; in main() local
369 g_io_channel_win32_make_pollfd (my_read_channel, G_IO_IN, &pollfd); in main()
370 pollresult = g_io_channel_win32_poll (&pollfd, 1, 100); in main()
/external/netcat/
Datomicio.c46 struct pollfd pfd; in atomicio()
/external/blktrace/
Dblktrace.c166 struct pollfd *pfds;
231 struct pollfd *pfds;
458 static void clear_events(struct pollfd *pfd) in clear_events()
1598 struct pollfd *pfd; in open_ios()
1605 tp->pfds = calloc(ndevs, sizeof(struct pollfd)); in open_ios()
1606 memset(tp->pfds, 0, ndevs * sizeof(struct pollfd)); in open_ios()
1666 struct pollfd *pfd = tp->pfds; in handle_pfds_file()
1710 struct pollfd *pfd = tp->pfds; in handle_pfds_netclient()
1744 struct pollfd *pfd = tp->pfds; in handle_pfds_entries()
2183 ns->pfds = realloc(ns->pfds, (ns->connects+1) * sizeof(struct pollfd)); in ch_add_connection()
[all …]
/external/valgrind/main/auxprogs/
Dvalgrind-listener.c102 struct pollfd conn_pollfd[M_CONNECTIONS];
305 { struct pollfd ufd; in main()
/external/kernel-headers/original/linux/
Dpoll.h115 extern int do_sys_poll(struct pollfd __user * ufds, unsigned int nfds,
/external/libusb/libusb/os/
Ddarwin_usb.c1384 static int op_handle_events(struct libusb_context *ctx, struct pollfd *fds, nfds_t nfds, int num_re… in op_handle_events()
1393 struct pollfd *pollfd = &fds[i]; in op_handle_events() local
1397 usbi_info (ctx, "checking fd %i with revents = %x", fds[i], pollfd->revents); in op_handle_events()
1399 if (!pollfd->revents) in op_handle_events()
1405 if (hpriv->fds[0] == pollfd->fd) in op_handle_events()
1409 if (!(pollfd->revents & POLLERR)) { in op_handle_events()

1234