Searched refs:inotifyFd (Results 1 – 5 of 5) sorted by relevance
/device/google/wahoo/usb/ |
D | UsbGadget.cpp | 426 unique_fd inotifyFd(inotify_init()); in setupFunctions() local 427 if (inotifyFd < 0) { in setupFunctions() 441 if (inotify_add_watch(inotifyFd, "/dev/usb-ffs/mtp/", IN_ALL_EVENTS) == -1) in setupFunctions() 455 if (inotify_add_watch(inotifyFd, "/dev/usb-ffs/ptp/", IN_ALL_EVENTS) == -1) in setupFunctions() 505 if (inotify_add_watch(inotifyFd, "/dev/usb-ffs/adb/", IN_ALL_EVENTS) == -1) in setupFunctions() 535 if (addEpollFd(epollFd, inotifyFd) == -1) return Status::ERROR; in setupFunctions() 540 mInotifyFd = move(inotifyFd); in setupFunctions()
|
/device/google/bonito/usb/ |
D | UsbGadget.cpp | 451 unique_fd inotifyFd(inotify_init()); in setupFunctions() local 452 if (inotifyFd < 0) { in setupFunctions() 466 if (inotify_add_watch(inotifyFd, "/dev/usb-ffs/mtp/", IN_ALL_EVENTS) == -1) in setupFunctions() 480 if (inotify_add_watch(inotifyFd, "/dev/usb-ffs/ptp/", IN_ALL_EVENTS) == -1) in setupFunctions() 530 if (inotify_add_watch(inotifyFd, "/dev/usb-ffs/adb/", IN_ALL_EVENTS) == -1) in setupFunctions() 560 if (addEpollFd(epollFd, inotifyFd) == -1) return Status::ERROR; in setupFunctions() 565 mInotifyFd = move(inotifyFd); in setupFunctions()
|
/device/google/crosshatch/usb/ |
D | UsbGadget.cpp | 451 unique_fd inotifyFd(inotify_init()); in setupFunctions() local 452 if (inotifyFd < 0) { in setupFunctions() 466 if (inotify_add_watch(inotifyFd, "/dev/usb-ffs/mtp/", IN_ALL_EVENTS) == -1) in setupFunctions() 480 if (inotify_add_watch(inotifyFd, "/dev/usb-ffs/ptp/", IN_ALL_EVENTS) == -1) in setupFunctions() 530 if (inotify_add_watch(inotifyFd, "/dev/usb-ffs/adb/", IN_ALL_EVENTS) == -1) in setupFunctions() 560 if (addEpollFd(epollFd, inotifyFd) == -1) return Status::ERROR; in setupFunctions() 565 mInotifyFd = move(inotifyFd); in setupFunctions()
|
/device/google/contexthub/contexthubhal/ |
D | nanohubhal.cpp | 228 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/ |
D | hubconnection.cpp | 1794 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()
|