Lines Matching refs:pollfd
63 adb_pollfd pollfd; member
66 memset(&pollfd, 0, sizeof(pollfd)); in PollNode()
67 pollfd.fd = fde->fd.get(); in PollNode()
72 pollfd.events = POLLRDHUP; in PollNode()
194 node.pollfd.events |= POLLIN; in fdevent_update()
196 node.pollfd.events &= ~POLLIN; in fdevent_update()
200 node.pollfd.events |= POLLOUT; in fdevent_update()
202 node.pollfd.events &= ~POLLOUT; in fdevent_update()
247 for (const auto& pollfd : pollfds) { in dump_pollfds() local
249 if (pollfd.events & POLLIN) { in dump_pollfds()
252 if (pollfd.events & POLLOUT) { in dump_pollfds()
255 android::base::StringAppendF(&result, " %d(%s)", pollfd.fd, op.c_str()); in dump_pollfds()
289 pollfds.push_back(pair.second.pollfd); in fdevent_process()
310 for (const auto& pollfd : pollfds) { in fdevent_process() local
311 if (pollfd.revents != 0) { in fdevent_process()
312 D("for fd %d, revents = %x", pollfd.fd, pollfd.revents); in fdevent_process()
315 if (pollfd.revents & POLLIN) { in fdevent_process()
318 if (pollfd.revents & POLLOUT) { in fdevent_process()
321 if (pollfd.revents & (POLLERR | POLLHUP | POLLNVAL)) { in fdevent_process()
327 if (pollfd.revents & POLLRDHUP) { in fdevent_process()
331 auto it = g_poll_node_map.find(pollfd.fd); in fdevent_process()
346 CHECK_EQ(fde->fd.get(), pollfd.fd); in fdevent_process()