Home
last modified time | relevance | path

Searched refs:NANOHUB_LOCK_DIR (Results 1 – 2 of 2) sorted by relevance

/device/google/contexthub/contexthubhal/
Dnanohubhal.cpp42 #define NANOHUB_LOCK_DIR "/data/vendor/sensor/nanohub_lock" macro
43 #define NANOHUB_LOCK_FILE NANOHUB_LOCK_DIR "/lock"
114 mkdir(NANOHUB_LOCK_DIR, NANOHUB_LOCK_DIR_PERMS); in init_inotify()
118 } else if (inotify_add_watch(pfd->fd, NANOHUB_LOCK_DIR, IN_CREATE | IN_DELETE) < 0) { in init_inotify()
/device/google/contexthub/sensorhal/
Dhubconnection.cpp60 #define NANOHUB_LOCK_DIR "/data/vendor/sensor/nanohub_lock" macro
61 #define NANOHUB_LOCK_FILE NANOHUB_LOCK_DIR "/lock"
1699 if (mkdir(NANOHUB_LOCK_DIR, NANOHUB_LOCK_DIR_PERMS) < 0 && errno != EEXIST) { in initNanohubLock()
1708 } else if (inotify_add_watch(inotifyFd, NANOHUB_LOCK_DIR, IN_CREATE | IN_DELETE) < 0) { in initNanohubLock()