Searched refs:inotify_fd_ (Results 1 – 3 of 3) sorted by relevance
40 Keychords::Keychords() : epoll_(nullptr), inotify_fd_(-1) {} in Keychords()43 if (inotify_fd_ >= 0) { in ~Keychords()44 epoll_->UnregisterHandler(inotify_fd_); in ~Keychords()45 ::close(inotify_fd_); in ~Keychords()223 auto res = TEMP_FAILURE_RETRY(::read(inotify_fd_, buf, sizeof(buf))); in InotifyHandler()250 inotify_fd_ = ::inotify_init1(IN_NONBLOCK | IN_CLOEXEC); in GeteventOpenDevice()251 if (inotify_fd_ < 0) { in GeteventOpenDevice()253 } else if (::inotify_add_watch(inotify_fd_, kDevicePath, IN_DELETE | IN_CREATE | IN_ONLYDIR) < in GeteventOpenDevice()256 ::close(inotify_fd_); in GeteventOpenDevice()257 inotify_fd_ = -1; in GeteventOpenDevice()[all …]
93 int inotify_fd_; variable
85 unique_fd inotify_fd_; member in android::fs_mgr::OneShotInotify124 inotify_fd_ = std::move(inotify_fd); in OneShotInotify()148 if (inotify_fd_ < 0) return Result::Error; in WaitImpl()155 .fd = inotify_fd_, in WaitImpl()197 ssize_t rv = TEMP_FAILURE_RETRY(read(inotify_fd_, buffer, sizeof(buffer))); in ConsumeEvents()