pollfd_t
pollfd_t pollset;
pollfd_t pollset;
pollfd_t *fds;
rfd = realloc(rfd, sizeof (pollfd_t) * svc_max_pollfd);
sizeof (pollfd_t) * svc_max_pollfd);
static pollfd_t *fdtable = NULL;
if ((fdtable = malloc(Max_fds * sizeof (pollfd_t))) == NULL)
move_amt * sizeof (pollfd_t));
move_amt * sizeof (pollfd_t));
pollfd_t *pollset = NULL;
sizeof (pollfd_t) * svc_max_pollfd);
sizeof (pollfd_t) * svc_max_pollfd);
arg.dp_fds = (pollfd_t *)events;
arg.dp_fds = (pollfd_t *)events;
extern pollfd_t *svc_pollfd;
extern int __rpc_compress_pollfd(int, pollfd_t *, pollfd_t *);
pollfd_t *svc_pollfd;
__rpc_compress_pollfd(int pollfdmax, pollfd_t *srcp, pollfd_t *p0)
pollfd_t *p = p0;
pollfd_t *tmp;
sizeof (pollfd_t) * svc_pollfd_allocd);
sizeof (pollfd_t) * svc_pollfd_allocd);
pollfd_t *tmp;
sizeof (pollfd_t) * svc_pollset_allocd);
extern int __rpc_compress_pollfd(int, pollfd_t *, pollfd_t *);
pollfd_t pollfd;
poll_wrapper(pollfd_t *fds, nfds_t nfds, int timeout, time_t *elapsed)
dppoll(int pollfd, pollfd_t *fds, nfds_t nfds, int timeout, time_t *elapsed)
pollfd_t fd;
ret = write(pollfd, &fd, sizeof (pollfd_t));
if (ret != sizeof (pollfd_t)) {
pollfd_t fd;
pollfd_t fds[5];
ret = write(pollfd, fds, sizeof (pollfd_t));
if (ret != sizeof (pollfd_t)) {
size = nfds * (fdsize = sizeof (pollfd_t));
pollfd_t pollfd;
error = copyin((caddr_t)arg, &pollfd, sizeof (pollfd_t));
if (copyout(&pollfd, (caddr_t)arg, sizeof (pollfd_t))) {
pollfd_t *pfdp;
pfdp = (pollfd_t *)dpbuf;
pollfd_t *pollfdp, *pfdp;
size = (is_epoll) ? sizeof (dvpoll_epollfd_t) : sizeof (pollfd_t);
pfdp = (pollfd_t *)((uintptr_t)pfdp + size)) {
int pollsys(pollfd_t *, nfds_t, timespec_t *, sigset_t *);
extern pollfd_t *svc_pollfd;
pollfd_t *dp_fds; /* pollfd array */
pollfd_t dpep_pollfd; /* must be first member */
pollfd_t *pcs_pollfd; /* cached poll lists */
pollfd_t *ps_pollfd; /* hold the current poll list */
pollfd_t *ps_dpbuf; /* return pollfd buf used by devpoll */
extern int pcache_insert(pollstate_t *, file_t *, pollfd_t *, int *, ssize_t,
extern int pcache_poll(pollfd_t *, pollstate_t *, nfds_t, int *, int);
extern int pcacheset_cache_list(pollstate_t *, pollfd_t *, int *, int);
extern void pcacheset_remove_list(pollstate_t *, pollfd_t *, int, int, int,
extern int pcacheset_cmp(pollfd_t *, pollfd_t *, pollfd_t *, int);
pcacheset_cmp(pollfd_t *current, pollfd_t *cached, pollfd_t *newlist, int n)
static int plist_chkdupfd(file_t *, polldat_t *, pollstate_t *, pollfd_t *, int,
pcache_insert(pollstate_t *ps, file_t *fp, pollfd_t *pollfdp, int *fdcntp,
pollfd_t *pollfdp = ps->ps_pollfd;
pollfd_t *newlist = NULL;
pollfd_t *current = ps->ps_pollfd;
pollfd_t *cached;
newlist = kmem_alloc(nfds * sizeof (pollfd_t), KM_SLEEP);
bcopy(current, newlist, sizeof (pollfd_t) * nfds);
pollfd_t *np;
sizeof (pollfd_t));
kmem_free(newlist, nfds * sizeof (pollfd_t));
kmem_free(pcsp->pcs_pollfd, old_nfds * sizeof (pollfd_t));
pollscanrevents(pollcache_t *pcp, pollfd_t *pollfdp, nfds_t nfds)
pcache_poll(pollfd_t *pollfdp, pollstate_t *ps, nfds_t nfds, int *fdcntp,
pcacheset_cache_list(pollstate_t *ps, pollfd_t *fds, int *fdcntp, int which)
pollfd_t *pollfdp = ps->ps_pollfd;
pollfd_t *newfdlist;
newfdlist = kmem_alloc(ps->ps_nfds * sizeof (pollfd_t), KM_SLEEP);
bcopy(pollfdp, newfdlist, sizeof (pollfd_t) * ps->ps_nfds);
kmem_free(newfdlist, ps->ps_nfds * sizeof (pollfd_t));
kmem_free(ps->ps_pollfd, ps->ps_nfds * sizeof (pollfd_t));
pcacheset_remove_list(pollstate_t *ps, pollfd_t *pollfdp, int start, int end,
pollfd_t *pollfdp = ps->ps_pcacheset[cacheindex].pcs_pollfd;
pollfd_t *pollfd;
pollfd_t *pollfdp = ps->ps_pollfd;
sizeof (pollfd_t));
plist_chkdupfd(file_t *fp, polldat_t *pdp, pollstate_t *psp, pollfd_t *pollfdp,
poll_common(pollfd_t *fds, nfds_t nfds, timespec_t *tsp, k_sigset_t *ksetp)
pollfd_t *pollfdp;
kmem_free(ps->ps_pollfd, old_nfds * sizeof (pollfd_t));
pollfdp = kmem_alloc(nfds * sizeof (pollfd_t), KM_SLEEP);
if (copyin(fds, pollfdp, nfds * sizeof (pollfd_t))) {
copyout(pollfdp, fds, nfds * sizeof (pollfd_t)))
pollsys(pollfd_t *fds, nfds_t nfds, timespec_t *timeoutp, sigset_t *setp)