Searched refs:inotifyFD (Results 1 – 1 of 1) sorted by relevance
/device/asus/fugu/libaudio/ |
D | AudioHotplugThread.cpp | 280 int inotifyFD = -1; in threadLoop() local 285 inotifyFD = inotify_init(); in threadLoop() 286 if (inotifyFD == -1) { in threadLoop() 290 flags = fcntl(inotifyFD, F_GETFL, 0); in threadLoop() 295 if (fcntl(inotifyFD, F_SETFL, flags | O_NONBLOCK) == -1) { in threadLoop() 300 watchFD = inotify_add_watch(inotifyFD, kAlsaDeviceDir, in threadLoop() 313 { inotifyFD, POLLIN, 0 }, in threadLoop() 331 ret = read(inotifyFD, eventBuf, sizeof(eventBuf)); in threadLoop() 385 inotify_rm_watch(inotifyFD, watchFD); in threadLoop() 387 if (inotifyFD != -1) { in threadLoop() [all …]
|