Home
last modified time | relevance | path

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

/device/asus/fugu/libaudio/
DAudioHotplugThread.cpp272 int inotifyFD = -1; in threadLoop() local
277 inotifyFD = inotify_init(); in threadLoop()
278 if (inotifyFD == -1) { in threadLoop()
282 flags = fcntl(inotifyFD, F_GETFL, 0); in threadLoop()
287 if (fcntl(inotifyFD, F_SETFL, flags | O_NONBLOCK) == -1) { in threadLoop()
292 watchFD = inotify_add_watch(inotifyFD, kAlsaDeviceDir, in threadLoop()
305 { inotifyFD, POLLIN, 0 }, in threadLoop()
323 ret = read(inotifyFD, eventBuf, sizeof(eventBuf)); in threadLoop()
377 inotify_rm_watch(inotifyFD, watchFD); in threadLoop()
379 if (inotifyFD != -1) { in threadLoop()
[all …]