Home | History | Annotate | Download | only in adb

Lines Matching defs:pollfd

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