Lines Matching refs:nfd
959 int nfd, int32_t *retval, int sel_pass, wait_queue_sub_t wqsub);
960 static int selcount(struct proc *p, u_int32_t *ibits, int nfd, int *count);
961 static int seldrop_locked(struct proc *p, u_int32_t *ibits, int nfd, int lim, int *need_wakeup, int fromselcount);
962 static int seldrop(struct proc *p, u_int32_t *ibits, int nfd);
1300 * nfd The number of file descriptors to scan
1312 selscan(struct proc *p, struct _select *sel, int nfd, int32_t *retval,
1342 nw = howmany(nfd, NFDBITS);
1353 for (i = 0; i < nfd; i += NFDBITS) {
1356 while ((j = ffs(bits)) && (fd = i + --j) < nfd) {
1635 * nfd The number of fd's in the vector
1651 selcount(struct proc *p, u_int32_t *ibits, int nfd, int *countp)
1672 nw = howmany(nfd, NFDBITS);
1677 for (i = 0; i < nfd; i += NFDBITS) {
1679 while ((j = ffs(bits)) && (fd = i + --j) < nfd) {
1704 (void)seldrop_locked(p, ibits, nfd, n, &need_wakeup, 1);
1723 * nfd Number of fd's
1741 seldrop_locked(struct proc *p, u_int32_t *ibits, int nfd, int lim, int *need_wakeup, int fromselcount)
1763 nw = howmany(nfd, NFDBITS);
1767 for (i = 0; i < nfd; i += NFDBITS) {
1769 while ((j = ffs(bits)) && (fd = i + --j) < nfd) {
1821 seldrop(struct proc *p, u_int32_t *ibits, int nfd)
1827 error = seldrop_locked(p, ibits, nfd, nfd, &need_wakeup, 0);