Searched refs:pfd (Results 1 – 4 of 4) sorted by relevance
/device/google/contexthub/contexthubhal/ |
D | nanohubhal.cpp | 123 static bool init_inotify(pollfd *pfd) { in init_inotify() argument 127 pfd->fd = inotify_init1(IN_NONBLOCK); in init_inotify() 128 if (pfd->fd < 0) { in init_inotify() 130 } else if (inotify_add_watch(pfd->fd, NANOHUB_LOCK_DIR, IN_CREATE | IN_DELETE) < 0) { in init_inotify() 132 close(pfd->fd); in init_inotify() 134 pfd->events = POLLIN; in init_inotify() 141 static void discard_inotify_evt(pollfd &pfd) { in discard_inotify_evt() argument 142 if ((pfd.revents & POLLIN)) { in discard_inotify_evt() 144 int ret = read(pfd.fd, buf, sizeof(buf)); in discard_inotify_evt() 149 static void wait_on_dev_lock(pollfd &pfd) { in wait_on_dev_lock() argument [all …]
|
/device/asus/fugu/libaudio/ |
D | AudioHotplugThread.cpp | 361 struct pollfd pfd = {mShutdownEventFD, POLLIN, 0}; in threadLoop() local 362 if (poll(&pfd, 1, kOpenTimeoutMs) == -1) { in threadLoop() 365 } else if (pfd.revents & POLLIN) { in threadLoop()
|
/device/generic/goldfish/fingerprint/ |
D | fingerprint.c | 678 struct pollfd pfd = { in listenerFunction() local 694 pfd.revents = 0; in listenerFunction() 702 int nfds = poll(&pfd, 1, 5000); in listenerFunction() 714 if (pfd.revents & POLLIN) { in listenerFunction() 716 disconnected = pfd.revents & (POLLERR | POLLHUP); in listenerFunction()
|
/device/google/contexthub/sensorhal/ |
D | hubconnection.cpp | 564 struct pollfd *pfd = &mPollFds[mInotifyPollIndex]; in waitOnNanohubLock() local 569 int ret = poll(pfd, 1, 5000); in waitOnNanohubLock() 570 if ((ret > 0) && (pfd->revents & POLLIN)) { in waitOnNanohubLock()
|