Home
last modified time | relevance | path

Searched refs:pfds (Results 1 – 9 of 9) sorted by relevance

/external/fio/engines/
Dbinject.c25 struct pollfd *pfds; member
51 static int pollin_events(struct pollfd *pfds, int fds) in pollin_events() argument
56 if (pfds[i].revents & POLLIN) in pollin_events()
117 bd->pfds[i].fd = bf->fd; in fio_binject_getevents()
118 bd->pfds[i].events = POLLIN; in fio_binject_getevents()
123 ret = poll(bd->pfds, td->o.nr_files, -1); in fio_binject_getevents()
132 if (pollin_events(bd->pfds, td->o.nr_files)) in fio_binject_getevents()
385 free(bd->pfds); in fio_binject_cleanup()
403 bd->pfds = malloc(sizeof(struct pollfd) * td->o.nr_files); in fio_binject_init()
404 memset(bd->pfds, 0, sizeof(struct pollfd) * td->o.nr_files); in fio_binject_init()
Dsg.c26 struct pollfd *pfds; member
53 static int pollin_events(struct pollfd *pfds, int fds) in pollin_events() argument
58 if (pfds[i].revents & POLLIN) in pollin_events()
86 sd->pfds[i].fd = f->fd; in fio_sgio_getevents()
87 sd->pfds[i].events = POLLIN; in fio_sgio_getevents()
97 ret = poll(sd->pfds, td->o.nr_files, -1); in fio_sgio_getevents()
106 if (pollin_events(sd->pfds, td->o.nr_files)) in fio_sgio_getevents()
317 free(sd->pfds); in fio_sgio_cleanup()
333 sd->pfds = malloc(sizeof(struct pollfd) * td->o.nr_files); in fio_sgio_init()
334 memset(sd->pfds, 0, sizeof(struct pollfd) * td->o.nr_files); in fio_sgio_init()
/external/toybox/toys/pending/
Dtelnet.c291 struct pollfd pfds[2]; in telnet_main() local
313 pfds[0].fd = STDIN_FILENO; in telnet_main()
314 pfds[0].events = POLLIN; in telnet_main()
315 pfds[1].fd = TT.sfd; in telnet_main()
316 pfds[1].events = POLLIN; in telnet_main()
321 if(poll(pfds, 2, -1) < 0) { in telnet_main()
327 if(pfds[0].revents) { in telnet_main()
332 if(pfds[1].revents) { in telnet_main()
/external/dbus/dbus/
Ddbus-spawn.c1082 DBusPollFD pfds[2]; in babysit() local
1084 pfds[0].fd = parent_pipe; in babysit()
1085 pfds[0].events = _DBUS_POLLIN; in babysit()
1086 pfds[0].revents = 0; in babysit()
1088 pfds[1].fd = sigchld_pipe[READ_END]; in babysit()
1089 pfds[1].events = _DBUS_POLLIN; in babysit()
1090 pfds[1].revents = 0; in babysit()
1092 if (_dbus_poll (pfds, _DBUS_N_ELEMENTS (pfds), -1) < 0 && errno != EINTR) in babysit()
1098 if (pfds[0].revents != 0) in babysit()
1100 check_babysit_events (grandchild_pid, parent_pipe, pfds[0].revents); in babysit()
[all …]
/external/blktrace/
Dblktrace.c166 struct pollfd *pfds; member
231 struct pollfd *pfds; member
1593 free(tp->pfds); in close_ios()
1605 tp->pfds = calloc(ndevs, sizeof(struct pollfd)); in open_ios()
1606 memset(tp->pfds, 0, ndevs * sizeof(struct pollfd)); in open_ios()
1610 pfd = tp->pfds; 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()
1802 ndone = poll(tp->pfds, ndevs, to_val); in thread_main()
[all …]
/external/fio/
Dclient.c1634 struct pollfd *pfds; in fio_handle_clients() local
1639 pfds = malloc(nr_clients * sizeof(struct pollfd)); in fio_handle_clients()
1658 pfds[i].fd = client->fd; in fio_handle_clients()
1659 pfds[i].events = POLLIN; in fio_handle_clients()
1685 ret = poll(pfds, nr_clients, timeout); in fio_handle_clients()
1696 if (!(pfds[i].revents & POLLIN)) in fio_handle_clients()
1699 client = find_client_by_fd(pfds[i].fd); in fio_handle_clients()
1701 log_err("fio: unknown client fd %ld\n", (long) pfds[i].fd); in fio_handle_clients()
1717 free(pfds); in fio_handle_clients()
/external/robolectric/v3/runtime/
Dandroid-all-4.1.2_r1-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.2.2_r1.2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.3_r2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...