Lines Matching defs:pfd
200 struct pollfd pfd[1];
226 pfd[0].fd = sockfd;
227 pfd[0].events = POLLRDNORM;
254 0, &timeout, sent, &now, pfd, 1);
262 /* only using one fd, so no need to scan pfd */
341 struct pollfd *pfd;
351 if (make_mc_target(hp, sin, header, &pfd, &nfds, &bcifs) != SLP_OK)
375 if (mc_sendmsg(pfd, msg, &bcifs) != SLP_OK) {
381 mc_recvmsg(pfd, nfds, hp, scopes, header, &collator, final_to,
392 /* close all fds in pfd */
393 free_pfds(pfd, nfds);
985 * mc_recvmsg() waits for data to be ready on any fd in pfd, iterates
986 * through pfd and reads data from ready fd's. It also checks timeouts
990 * pfd IN an array of pollfd structs containing fds to poll
991 * nfds IN number of elements in pfd
1006 static void mc_recvmsg(struct pollfd *pfd, nfds_t nfds, slp_handle_impl_t *hp,
1022 final_to, &timeout, sent, now, pfd, nfds);
1033 if (pfd[i].fd < 0 ||
1034 !(pfd[i].revents & (POLLRDNORM | POLLERR))) {
1045 if (recvfrom(pfd[i].fd, reply, mtu, 0,
1161 struct pollfd pfd[], nfds_t nfds) {
1167 pollerr = poll(pfd, nfds, *timeout);