Lines Matching refs:pollfd
56 adb_pollfd pollfd; member
59 memset(&pollfd, 0, sizeof(pollfd)); in PollNode()
60 pollfd.fd = fde->fd; in PollNode()
65 pollfd.events = POLLRDHUP; in PollNode()
177 node.pollfd.events |= POLLIN; in fdevent_update()
179 node.pollfd.events &= ~POLLIN; in fdevent_update()
183 node.pollfd.events |= POLLOUT; in fdevent_update()
185 node.pollfd.events &= ~POLLOUT; in fdevent_update()
222 for (const auto& pollfd : pollfds) { in dump_pollfds() local
224 if (pollfd.events & POLLIN) { in dump_pollfds()
227 if (pollfd.events & POLLOUT) { in dump_pollfds()
230 android::base::StringAppendF(&result, " %d(%s)", pollfd.fd, op.c_str()); in dump_pollfds()
238 pollfds.push_back(pair.second.pollfd); in fdevent_process()
247 for (const auto& pollfd : pollfds) { in fdevent_process() local
248 if (pollfd.revents != 0) { in fdevent_process()
249 D("for fd %d, revents = %x", pollfd.fd, pollfd.revents); in fdevent_process()
252 if (pollfd.revents & POLLIN) { in fdevent_process()
255 if (pollfd.revents & POLLOUT) { in fdevent_process()
258 if (pollfd.revents & (POLLERR | POLLHUP | POLLNVAL)) { in fdevent_process()
264 if (pollfd.revents & POLLRDHUP) { in fdevent_process()
269 auto it = g_poll_node_map.find(pollfd.fd); in fdevent_process()
272 CHECK_EQ(fde->fd, pollfd.fd); in fdevent_process()