Lines Matching refs:ibits
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);
1024 if (sel->ibits != NULL)
1025 FREE(sel->ibits, M_TEMP);
1028 /* NULL out; subsequent ibits allocation may fail */
1032 MALLOC(sel->ibits, u_int32_t *, nbytes, M_TEMP, M_WAITOK | M_ZERO);
1033 if (sel->ibits == NULL)
1037 FREE(sel->ibits, M_TEMP);
1038 sel->ibits = NULL;
1046 bzero((caddr_t)sel->ibits, sel->nbytes);
1056 (caddr_t)&sel->ibits[(x) * nw], ni))) \
1092 if ( (error = selcount(p, sel->ibits, uap->nd, &count)) ) {
1265 seldrop(p, sel->ibits, uap->nd);
1324 u_int32_t *ibits, *obits;
1338 ibits = sel->ibits;
1350 iptr = (u_int32_t *)&ibits[msk * nw];
1634 * ibits The input bit vector
1651 selcount(struct proc *p, u_int32_t *ibits, int nfd, int *countp)
1676 iptr = (u_int32_t *)&ibits[msk * nw];
1704 (void)seldrop_locked(p, ibits, nfd, n, &need_wakeup, 1);
1722 * ibits Input pit bector of fd's
1741 seldrop_locked(struct proc *p, u_int32_t *ibits, int nfd, int lim, int *need_wakeup, int fromselcount)
1766 iptr = (u_int32_t *)&ibits[msk * nw];
1821 seldrop(struct proc *p, u_int32_t *ibits, int nfd)
1827 error = seldrop_locked(p, ibits, nfd, nfd, &need_wakeup, 0);