Lines Matching refs:pollfd_t

109 static int plist_chkdupfd(file_t *, polldat_t *, pollstate_t *, pollfd_t *, int,
291 poll_common(pollfd_t *fds, nfds_t nfds, timespec_t *tsp, k_sigset_t *ksetp) in poll_common()
299 pollfd_t *pollfdp; in poll_common()
396 kmem_free(ps->ps_pollfd, old_nfds * sizeof (pollfd_t)); in poll_common()
397 pollfdp = kmem_alloc(nfds * sizeof (pollfd_t), KM_SLEEP); in poll_common()
403 if (copyin(fds, pollfdp, nfds * sizeof (pollfd_t))) { in poll_common()
593 copyout(pollfdp, fds, nfds * sizeof (pollfd_t))) in poll_common()
629 pollsys(pollfd_t *fds, nfds_t nfds, timespec_t *timeoutp, sigset_t *setp) in pollsys()
1005 pcacheset_cmp(pollfd_t *current, pollfd_t *cached, pollfd_t *newlist, int n) in pcacheset_cmp()
1258 pcache_insert(pollstate_t *ps, file_t *fp, pollfd_t *pollfdp, int *fdcntp, in pcache_insert()
1515 pollfd_t *pollfdp = ps->ps_pollfd; in pollchecksanity()
1551 pollfd_t *newlist = NULL; in pcacheset_resolve()
1552 pollfd_t *current = ps->ps_pollfd; in pcacheset_resolve()
1553 pollfd_t *cached; in pcacheset_resolve()
1579 newlist = kmem_alloc(nfds * sizeof (pollfd_t), KM_SLEEP); in pcacheset_resolve()
1580 bcopy(current, newlist, sizeof (pollfd_t) * nfds); in pcacheset_resolve()
1594 pollfd_t *np; in pcacheset_resolve()
1711 sizeof (pollfd_t)); in pcacheset_resolve()
1788 kmem_free(newlist, nfds * sizeof (pollfd_t)); in pcacheset_resolve()
1805 kmem_free(pcsp->pcs_pollfd, old_nfds * sizeof (pollfd_t)); in pcacheset_resolve()
1842 pollscanrevents(pollcache_t *pcp, pollfd_t *pollfdp, nfds_t nfds) in pollscanrevents()
1868 pcache_poll(pollfd_t *pollfdp, pollstate_t *ps, nfds_t nfds, int *fdcntp, in pcache_poll()
2116 pcacheset_cache_list(pollstate_t *ps, pollfd_t *fds, int *fdcntp, int which) in pcacheset_cache_list()
2118 pollfd_t *pollfdp = ps->ps_pollfd; in pcacheset_cache_list()
2120 pollfd_t *newfdlist; in pcacheset_cache_list()
2130 newfdlist = kmem_alloc(ps->ps_nfds * sizeof (pollfd_t), KM_SLEEP); in pcacheset_cache_list()
2134 bcopy(pollfdp, newfdlist, sizeof (pollfd_t) * ps->ps_nfds); in pcacheset_cache_list()
2181 kmem_free(newfdlist, ps->ps_nfds * sizeof (pollfd_t)); in pcacheset_cache_list()
2278 kmem_free(ps->ps_pollfd, ps->ps_nfds * sizeof (pollfd_t)); in pollstate_destroy()
2288 kmem_free(ps->ps_dpbuf, ps->ps_dpbufsize * sizeof (pollfd_t)); in pollstate_destroy()
2480 pcacheset_remove_list(pollstate_t *ps, pollfd_t *pollfdp, int start, int end, in pcacheset_remove_list()
2550 pollfd_t *pollfdp = ps->ps_pcacheset[cacheindex].pcs_pollfd; in pollcheckxref()
2606 pollfd_t *pollfd; in checkpolldat()
2659 pollfd_t *pollfdp = ps->ps_pollfd; in pollcheckrevents()
2780 sizeof (pollfd_t)); in pcacheset_destroy()
2795 plist_chkdupfd(file_t *fp, polldat_t *pdp, pollstate_t *psp, pollfd_t *pollfdp, in plist_chkdupfd()