Lines Matching refs:pfd
410 struct pollfd pfd[2]; in cld80211_recv() local
423 memset(&pfd[0], 0, 2*sizeof(struct pollfd)); in cld80211_recv()
433 pfd[0].fd = nl_socket_get_fd(ctx->sock); in cld80211_recv()
434 pfd[0].events = POLLIN; in cld80211_recv()
436 pfd[1].fd = ctx->exit_sockets[1]; in cld80211_recv()
437 pfd[1].events = POLLIN; in cld80211_recv()
440 pfd[0].revents = 0; in cld80211_recv()
441 pfd[1].revents = 0; in cld80211_recv()
442 int result = poll(pfd, 2, timeout); in cld80211_recv()
445 } else if (pfd[0].revents & (POLLIN | POLLHUP | POLLERR)) { in cld80211_recv()
446 cld80211_handle_event(pfd[0].revents, ctx->sock, cb); in cld80211_recv()