Home
last modified time | relevance | path

Searched refs:inotifyFd (Results 1 – 3 of 3) sorted by relevance

/device/google/trout/hal/vehicle/2.0/
DGarageModeServerSideHandler.cpp143 int inotifyFd = inotify_init(); in PowerStateWatcher() local
144 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()
/device/google/contexthub/contexthubhal/
Dnanohubhal.cpp228 pollfd &inotifyFd = myFds[IDX_INOTIFY]; in runDeviceRx() local
232 if (init_inotify(&inotifyFd)) { in runDeviceRx()
249 wait_on_dev_lock(inotifyFd); in runDeviceRx()
/device/google/contexthub/sensorhal/
Dhubconnection.cpp1794 int inotifyFd = inotify_init1(IN_NONBLOCK); in initNanohubLock() local
1795 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()