Lines Matching refs:lock_object

76 static void	assert_rm(const struct lock_object *lock, int what);
78 static void db_show_rm(const struct lock_object *lock);
80 static void lock_rm(struct lock_object *lock, uintptr_t how);
82 static int owner_rm(const struct lock_object *lock, struct thread **owner);
84 static uintptr_t unlock_rm(struct lock_object *lock);
115 assert_rm(const struct lock_object *lock, int what) in assert_rm()
122 lock_rm(struct lock_object *lock, uintptr_t how) in lock_rm()
137 unlock_rm(struct lock_object *lock) in unlock_rm()
180 owner_rm(const struct lock_object *lock, struct thread **owner) in owner_rm()
306 lock_init(&rm->lock_object, lc, name, NULL, liflags); in rm_init_flags()
322 if (rm->lock_object.lo_flags & LO_SLEEPABLE) in rm_destroy()
326 lock_destroy(&rm->lock_object); in rm_destroy()
333 if (rm->lock_object.lo_flags & LO_SLEEPABLE) in rm_wowned()
381 if ((rm->lock_object.lo_flags & LO_RECURSABLE) != 0) { in _rm_rlock_hard()
402 if (rm->lock_object.lo_flags & LO_SLEEPABLE) { in _rm_rlock_hard()
410 if (rm->lock_object.lo_flags & LO_SLEEPABLE) { in _rm_rlock_hard()
425 if (rm->lock_object.lo_flags & LO_SLEEPABLE) in _rm_rlock_hard()
446 if (rm->lock_object.lo_flags & LO_SLEEPABLE) in _rm_rlock()
492 turnstile_chain_lock(&rm->lock_object); in _rm_unlock_hard()
495 ts = turnstile_lookup(&rm->lock_object); in _rm_unlock_hard()
499 turnstile_chain_unlock(&rm->lock_object); in _rm_unlock_hard()
523 if (rm->lock_object.lo_flags & LO_SLEEPABLE) in _rm_runlock()
542 if (rm->lock_object.lo_flags & LO_SLEEPABLE) in _rm_wlock()
570 ts = turnstile_trywait(&rm->lock_object); in _rm_wlock()
585 if (rm->lock_object.lo_flags & LO_SLEEPABLE) in _rm_wunlock()
607 WITNESS_CHECKORDER(&rm->lock_object, LOP_NEWORDER | LOP_EXCLUSIVE, in _rm_wlock_debug()
612 LOCK_LOG_LOCK("RMWLOCK", &rm->lock_object, 0, 0, file, line); in _rm_wlock_debug()
613 WITNESS_LOCK(&rm->lock_object, LOP_EXCLUSIVE, file, line); in _rm_wlock_debug()
627 WITNESS_UNLOCK(&rm->lock_object, LOP_EXCLUSIVE, file, line); in _rm_wunlock_debug()
628 LOCK_LOG_LOCK("RMWUNLOCK", &rm->lock_object, 0, 0, file, line); in _rm_wunlock_debug()
642 if (!(rm->lock_object.lo_flags & LO_RECURSABLE) && !trylock) { in _rm_rlock_debug()
659 rm->lock_object.lo_name, file, line)); in _rm_rlock_debug()
660 WITNESS_CHECKORDER(&rm->lock_object, in _rm_rlock_debug()
666 LOCK_LOG_TRY("RMRLOCK", &rm->lock_object, 0, 1, file, in _rm_rlock_debug()
669 LOCK_LOG_LOCK("RMRLOCK", &rm->lock_object, 0, 0, file, in _rm_rlock_debug()
671 WITNESS_LOCK(&rm->lock_object, LOP_NOSLEEP, file, line); in _rm_rlock_debug()
675 LOCK_LOG_TRY("RMRLOCK", &rm->lock_object, 0, 0, file, line); in _rm_rlock_debug()
691 WITNESS_UNLOCK(&rm->lock_object, 0, file, line); in _rm_runlock_debug()
692 LOCK_LOG_LOCK("RMRUNLOCK", &rm->lock_object, 0, 0, file, line); in _rm_runlock_debug()
766 rm->lock_object.lo_name, file, line); in _rm_assert()
769 rm->lock_object.lo_name, file, line); in _rm_assert()
779 rm->lock_object.lo_name, (what & RA_RLOCKED) ? in _rm_assert()
784 rm->lock_object.lo_name, file, line); in _rm_assert()
787 rm->lock_object.lo_name, file, line); in _rm_assert()
792 rm->lock_object.lo_name, file, line); in _rm_assert()
797 rm->lock_object.lo_name, file, line); in _rm_assert()
805 rm->lock_object.lo_name, file, line); in _rm_assert()
833 db_show_rm(const struct lock_object *lock) in db_show_rm()