Lines Matching defs:kernel_lock
65 __cpu_simple_lock_t kernel_lock[CACHE_LINE_SIZE / sizeof(__cpu_simple_lock_t)]
79 LOCKDEBUG_BARRIER(kernel_lock, 1);
113 * Functions for manipulating the kernel_lock. We put them here
118 LOCKDEBUG_ABORT(__func__, __LINE__, kernel_lock, &_kernel_lock_ops, msg)
165 __cpu_simple_lock_init(kernel_lock);
166 kernel_lock_dodebug = LOCKDEBUG_ALLOC(kernel_lock, &_kernel_lock_ops,
213 _KERNEL_LOCK_ASSERT(__SIMPLELOCK_LOCKED_P(kernel_lock));
221 LOCKDEBUG_WANTLOCK(kernel_lock_dodebug, kernel_lock, RETURN_ADDRESS,
224 if (__predict_true(__cpu_simple_lock_try(kernel_lock))) {
230 LOCKDEBUG_LOCKED(kernel_lock_dodebug, kernel_lock, NULL,
238 * and kernel_lock we must make it appear as if this thread is
268 while (__SIMPLELOCK_LOCKED_P(kernel_lock)) {
286 } while (!__cpu_simple_lock_try(kernel_lock));
291 LOCKDEBUG_LOCKED(kernel_lock_dodebug, kernel_lock, NULL,
294 LOCKSTAT_EVENT_RA(lsflag, kernel_lock,
301 * Now that we have kernel_lock, reset ci_biglock_wanted. This
348 _KERNEL_LOCK_ASSERT(__SIMPLELOCK_LOCKED_P(kernel_lock));
360 LOCKDEBUG_UNLOCKED(kernel_lock_dodebug, kernel_lock,
363 __cpu_simple_unlock(kernel_lock);
381 return __SIMPLELOCK_LOCKED_P(kernel_lock);