Lines Matching defs:nlocks
67 rump_kernel_bigwrap(int *nlocks)
74 *nlocks = giantcnt;
79 rump_kernel_bigunwrap(int nlocks)
84 giantcnt = nlocks;
88 _kernel_lock(int nlocks)
92 while (nlocks) {
94 giantcnt += nlocks;
95 nlocks = 0;
108 nlocks--;
114 _kernel_unlock(int nlocks, int *countp)
118 KASSERT(nlocks == 0);
126 if (nlocks == 0)
127 nlocks = giantcnt;
128 if (nlocks == -1) {
130 nlocks = 1;
132 KASSERT(nlocks <= giantcnt);
133 while (nlocks--) {
151 rump_user_unschedule(int nlocks, int *countp, void *interlock)
154 _kernel_unlock(nlocks, countp);
163 rump_user_schedule(int nlocks, void *interlock)
168 if (nlocks)
169 _kernel_lock(nlocks);