Lines Matching refs:lock_object

76 static void	assert_rm(struct lock_object *lock, int what);
78 static void db_show_rm(struct lock_object *lock);
80 static void lock_rm(struct lock_object *lock, int how);
82 static int owner_rm(struct lock_object *lock, struct thread **owner);
84 static int unlock_rm(struct lock_object *lock);
115 assert_rm(struct lock_object *lock, int what)
128 lock_rm(struct lock_object *lock, int how)
142 unlock_rm(struct lock_object *lock)
153 owner_rm(struct lock_object *lock, struct thread **owner)
271 lock_init(&rm->lock_object, lc, name, NULL, liflags);
287 if (rm->lock_object.lo_flags & LO_SLEEPABLE)
291 lock_destroy(&rm->lock_object);
298 if (rm->lock_object.lo_flags & LO_SLEEPABLE)
349 if ((rm->lock_object.lo_flags & LO_RECURSABLE) != 0) {
370 if (rm->lock_object.lo_flags & LO_SLEEPABLE) {
378 if (rm->lock_object.lo_flags & LO_SLEEPABLE)
391 if (rm->lock_object.lo_flags & LO_SLEEPABLE)
459 turnstile_chain_lock(&rm->lock_object);
462 ts = turnstile_lookup(&rm->lock_object);
466 turnstile_chain_unlock(&rm->lock_object);
502 if (rm->lock_object.lo_flags & LO_SLEEPABLE)
530 ts = turnstile_trywait(&rm->lock_object);
545 if (rm->lock_object.lo_flags & LO_SLEEPABLE)
562 curthread, rm->lock_object.lo_name, file, line));
567 WITNESS_CHECKORDER(&rm->lock_object, LOP_NEWORDER | LOP_EXCLUSIVE,
572 LOCK_LOG_LOCK("RMWLOCK", &rm->lock_object, 0, 0, file, line);
574 WITNESS_LOCK(&rm->lock_object, LOP_EXCLUSIVE, file, line);
590 WITNESS_UNLOCK(&rm->lock_object, LOP_EXCLUSIVE, file, line);
591 LOCK_LOG_LOCK("RMWUNLOCK", &rm->lock_object, 0, 0, file, line);
605 if (!(rm->lock_object.lo_flags & LO_RECURSABLE) && !trylock) {
610 rm->lock_object.lo_name, file, line));
616 curthread, rm->lock_object.lo_name, file, line));
622 rm->lock_object.lo_name, file, line));
623 WITNESS_CHECKORDER(&rm->lock_object, LOP_NEWORDER, file, line,
629 LOCK_LOG_TRY("RMRLOCK", &rm->lock_object, 0, 1, file,
632 LOCK_LOG_LOCK("RMRLOCK", &rm->lock_object, 0, 0, file,
634 WITNESS_LOCK(&rm->lock_object, 0, file, line);
640 LOCK_LOG_TRY("RMRLOCK", &rm->lock_object, 0, 0, file, line);
656 WITNESS_UNLOCK(&rm->lock_object, 0, file, line);
657 LOCK_LOG_LOCK("RMRUNLOCK", &rm->lock_object, 0, 0, file, line);
731 rm->lock_object.lo_name, file, line);
734 rm->lock_object.lo_name, file, line);
744 rm->lock_object.lo_name, (what & RA_RLOCKED) ?
749 rm->lock_object.lo_name, file, line);
752 rm->lock_object.lo_name, file, line);
757 rm->lock_object.lo_name, file, line);
762 rm->lock_object.lo_name, file, line);
770 rm->lock_object.lo_name, file, line);
798 db_show_rm(struct lock_object *lock)