Home
last modified time | relevance | path

Searched refs:pfds (Results 1 – 8 of 8) sorted by relevance

/dragonfly/contrib/lvm2/dist/daemons/cmirrord/
H A Dlink_mon.c31 static struct pollfd *pfds = NULL; variable
40 if (fd == pfds[i].fd) { in links_register()
63 pfds = tmp; in links_register()
68 pfds[used_pfds].fd = fd; in links_register()
70 pfds[used_pfds].revents = 0; in links_register()
88 if (fd == pfds[i].fd) { in links_unregister()
90 pfds[i] = pfds[used_pfds - 1]; in links_unregister()
116 pfds[i].revents = 0; in links_monitor()
119 r = poll(pfds, used_pfds, -1); in links_monitor()
142 if (pfds[i].revents & POLLIN) in links_issue_callbacks()
[all …]
/dragonfly/usr.sbin/rtadvd/
H A Dcontrol.c65 struct pollfd pfds[1]; in cm_recv() local
74 pfds[0].fd = fd; in cm_recv()
75 pfds[0].events = POLLIN; in cm_recv()
78 i = poll(pfds, sizeof(pfds)/sizeof(pfds[0]), in cm_recv()
90 if (pfds[0].revents & POLLIN) { in cm_recv()
134 i = poll(pfds, sizeof(pfds)/sizeof(pfds[0]), in cm_recv()
146 if (pfds[0].revents & POLLIN) { in cm_recv()
/dragonfly/sys/kern/
H A Dsys_generic.c101 int pfds; member
1321 while (pkap->pfds < pkap->nfds) { in poll_copyin()
1322 pfd = &pkap->fds[pkap->pfds]; in poll_copyin()
1329 ++pkap->pfds; in poll_copyin()
1367 notes, pkap->pfds, (void *)(uintptr_t) in poll_copyin()
1368 (pkap->lwp->lwp_kqueue_serial + pkap->pfds)); in poll_copyin()
1380 notes, pkap->pfds, (void *)(uintptr_t) in poll_copyin()
1398 NOTE_OLDAPI | NOTE_OOB, pkap->pfds, in poll_copyin()
1405 "serial %ju\n", pkap->pfds, pkap->nfds-1, in poll_copyin()
1410 ++pkap->pfds; in poll_copyin()
[all …]
/dragonfly/contrib/ldns/
H A Dnet.c167 struct pollfd pfds[2]; in ldns_sock_wait() local
169 memset(&pfds[0], 0, sizeof(pfds[0]) * 2); in ldns_sock_wait()
171 pfds[0].fd = sockfd; in ldns_sock_wait()
172 pfds[0].events = POLLIN|POLLERR; in ldns_sock_wait()
175 pfds[0].events |= POLLOUT; in ldns_sock_wait()
178 ret = poll(pfds, 1, (int)(timeout.tv_sec * 1000 in ldns_sock_wait()
/dragonfly/crypto/openssh/
H A Dchannels.c440 c->pfds[0] = -1; in channel_close_fd()
446 c->pfds[1] = -1; in channel_close_fd()
452 c->pfds[2] = -1; in channel_close_fd()
458 c->pfds[3] = -1; in channel_close_fd()
2494 c->pfds[0], c->pfds[1], c->pfds[2], c->pfds[3], in dump_channel_poll()
2514 c->pfds[0] = c->pfds[1] = c->pfds[2] = c->pfds[3] = -1; in channel_prepare_pollfd()
2547 c->pfds[0] = p; in channel_prepare_pollfd()
2561 c->pfds[1] = p; in channel_prepare_pollfd()
2577 c->pfds[2] = p; in channel_prepare_pollfd()
2593 c->pfds[3] = p; in channel_prepare_pollfd()
[all …]
H A Dchannels.h141 int pfds[4]; /* pollfd entries for rfd/wfd/efd/sock */ member
/dragonfly/usr.sbin/rpcbind/
H A Drpcb_svc_com.c1169 check_rmtcalls(struct pollfd *pfds, int nfds) in check_rmtcalls() argument
1179 if ((xprt = find_rmtcallxprt_by_fd(pfds[j].fd)) != NULL) { in check_rmtcalls()
1180 if (pfds[j].revents) { in check_rmtcalls()
1186 pfds[j].fd, xprt->xp_netid); in check_rmtcalls()
1188 handle_reply(pfds[j].fd, xprt); in check_rmtcalls()
1189 pfds[j].revents = 0; in check_rmtcalls()
/dragonfly/contrib/dhcpcd/src/
H A Deloop.c678 struct kevent *pfds, *pfd; in eloop_forked() local
693 pfds = malloc((eloop->nsignals + (eloop->nevents * NFD)) * sizeof(*pfds)); in eloop_forked()
694 pfd = pfds; in eloop_forked()
734 return _kevent(eloop->fd, pfds, i, NULL, 0, NULL); in eloop_forked()