Searched refs:inotifyFd (Results 1 – 3 of 3) sorted by relevance
143 int inotifyFd = inotify_init(); in PowerStateWatcher() local144 if (inotifyFd < 0) { in PowerStateWatcher()156 inotify_add_watch(inotifyFd, mPowerStateMarkerPath.c_str(), IN_MODIFY); in PowerStateWatcher()163 if (!WaitForReadWithTimeout(inotifyFd, kFileStatusCheckPeriod)) { in PowerStateWatcher()167 auto eventReadLen = read(inotifyFd, inotifyEventBuffer, sizeof(inotifyEventBuffer)); in PowerStateWatcher()
228 pollfd &inotifyFd = myFds[IDX_INOTIFY]; in runDeviceRx() local232 if (init_inotify(&inotifyFd)) { in runDeviceRx()249 wait_on_dev_lock(inotifyFd); in runDeviceRx()
1794 int inotifyFd = inotify_init1(IN_NONBLOCK); in initNanohubLock() local1795 if (inotifyFd < 0) { in initNanohubLock()1797 } else if (inotify_add_watch(inotifyFd, NANOHUB_LOCK_DIR, IN_CREATE | IN_DELETE) < 0) { in initNanohubLock()1799 close(inotifyFd); in initNanohubLock()1801 mPollFds[mNumPollFds].fd = inotifyFd; in initNanohubLock()