Lines Matching refs:pfd
399 struct pollfd pfd[2]; in cld80211_recv() local
412 memset(&pfd[0], 0, 2*sizeof(struct pollfd)); in cld80211_recv()
422 pfd[0].fd = nl_socket_get_fd(ctx->sock); in cld80211_recv()
423 pfd[0].events = POLLIN; in cld80211_recv()
425 pfd[1].fd = ctx->exit_sockets[1]; in cld80211_recv()
426 pfd[1].events = POLLIN; in cld80211_recv()
429 pfd[0].revents = 0; in cld80211_recv()
430 pfd[1].revents = 0; in cld80211_recv()
431 int result = poll(pfd, 2, timeout); in cld80211_recv()
434 } else if (pfd[0].revents & (POLLIN | POLLHUP | POLLERR)) { in cld80211_recv()
435 cld80211_handle_event(pfd[0].revents, ctx->sock, cb); in cld80211_recv()