Searched refs:pfd (Results 1 – 4 of 4) sorted by relevance
/device/asus/flo/power/ |
D | power_flo.c | 59 static struct pollfd pfd; variable 119 n = recv(pfd.fd, msg, UEVENT_MSG_LEN, MSG_DONTWAIT); in uevent_event() 171 nevents = poll(&pfd, 1, -1); in thread_uevent() 190 pfd.fd = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT); in uevent_init() 192 if (pfd.fd < 0) { in uevent_init() 201 pfd.events = POLLIN; in uevent_init() 202 bind(pfd.fd, (void *)&client, sizeof(struct sockaddr_nl)); in uevent_init()
|
/device/lge/hammerhead/power/ |
D | power_hammerhead.c | 59 static struct pollfd pfd; variable 119 n = recv(pfd.fd, msg, UEVENT_MSG_LEN, MSG_DONTWAIT); in uevent_event() 171 nevents = poll(&pfd, 1, -1); in thread_uevent() 190 pfd.fd = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT); in uevent_init() 192 if (pfd.fd < 0) { in uevent_init() 201 pfd.events = POLLIN; in uevent_init() 202 bind(pfd.fd, (void *)&client, sizeof(struct sockaddr_nl)); in uevent_init()
|
/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 | 568 struct pollfd pfd = { in listenerFunction() local 584 pfd.revents = 0; in listenerFunction() 592 int nfds = poll(&pfd, 1, 5000); in listenerFunction() 604 if (pfd.revents & POLLIN) { in listenerFunction() 606 disconnected = pfd.revents & (POLLERR | POLLHUP); in listenerFunction()
|