Lines Matching refs:nlocks
186 * Acquire 'nlocks' holds on the kernel lock.
194 _kernel_lock(int nlocks)
208 _KERNEL_LOCK_ASSERT(nlocks > 0);
214 ci->ci_biglock_count += nlocks;
215 l->l_blcnt += nlocks;
228 ci->ci_biglock_count = nlocks;
229 l->l_blcnt = nlocks;
288 ci->ci_biglock_count = nlocks;
289 l->l_blcnt = nlocks;
326 * Release 'nlocks' holds on the kernel lock. If 'nlocks' is zero, release
330 _kernel_unlock(int nlocks, int *countp)
337 _KERNEL_LOCK_ASSERT(nlocks < 2);
342 _KERNEL_LOCK_ASSERT(nlocks <= 0);
350 if (nlocks == 0)
351 nlocks = olocks;
352 else if (nlocks == -1) {
353 nlocks = 1;
359 if (ci->ci_biglock_count == nlocks) {
364 l->l_blcnt -= nlocks;
369 ci->ci_biglock_count -= nlocks;
370 l->l_blcnt -= nlocks;