Lines Matching refs:fd
41 bool HciWatcher::AddFdToWatcher(int fd, HciDataCallback callback)
44 fds_[fd] = callback;
49 bool HciWatcher::RemoveFdToWatcher(int fd)
52 fds_.erase(fd);
122 HDF_LOGW("fd[%d]", wakeupPipe_[0]);
129 for (auto &&fd : fds_) {
130 FD_SET(fd.first, &readFds);
131 nfds = std::max(fd.first, nfds);
162 for (auto &&fd : fds_) {
163 if (FD_ISSET(fd.first, &readFds)) {
164 fd.second(fd.first);