Home
last modified time | relevance | path

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

/external/dbus/dbus/
Ddbus-spawn.c983 DBusPollFD pfds[2]; in babysit() local
985 pfds[0].fd = parent_pipe; in babysit()
986 pfds[0].events = _DBUS_POLLIN; in babysit()
987 pfds[0].revents = 0; in babysit()
989 pfds[1].fd = sigchld_pipe[READ_END]; in babysit()
990 pfds[1].events = _DBUS_POLLIN; in babysit()
991 pfds[1].revents = 0; in babysit()
993 _dbus_poll (pfds, _DBUS_N_ELEMENTS (pfds), -1); in babysit()
995 if (pfds[0].revents != 0) in babysit()
997 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/bluetooth/bluez/audio/
Dpcm_bluetooth.c779 struct pollfd *pfds, unsigned int nfds, in bluetooth_poll_revents() argument
782 assert(pfds && nfds == 1 && revents); in bluetooth_poll_revents()
784 *revents = pfds[0].revents; in bluetooth_poll_revents()
817 struct pollfd *pfds, unsigned int nfds, in bluetooth_playback_poll_revents() argument
825 assert(pfds); in bluetooth_playback_poll_revents()
828 assert(pfds[0].fd >= 0); in bluetooth_playback_poll_revents()
829 assert(pfds[1].fd >= 0); in bluetooth_playback_poll_revents()
832 ret = read(pfds[0].fd, buf, 1); in bluetooth_playback_poll_revents()
834 if (pfds[1].revents & (POLLERR | POLLHUP | POLLNVAL)) in bluetooth_playback_poll_revents()
837 *revents = (pfds[0].revents & POLLIN) ? POLLOUT : 0; in bluetooth_playback_poll_revents()