Lines Matching defs:lock
31 * Machine independent bits of reader/writer lock implementation.
46 #include <sys/lock.h>
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)
118 rm_assert((struct rmlock *)lock, what);
128 lock_rm(struct lock_object *lock, int how)
132 rm = (struct rmlock *)lock;
142 unlock_rm(struct lock_object *lock)
146 rm = (struct rmlock *)lock;
153 owner_rm(struct lock_object *lock, struct thread **owner)
158 rm = (struct rmlock *)lock;
193 * has on this CPU for the lock 'rm'.
337 /* Check to see if the IPI granted us the lock after all. */
339 /* Just add back tracker - we hold the lock. */
346 * We allow readers to aquire a lock even if a writer is blocked if
347 * the lock is recursive and the reader already holds the lock.
351 * Just grant the lock if this thread already has a tracker
352 * for this lock on the per-cpu queue.
665 * Just strip out file and line arguments if no lock debugging is enabled in
706 * Note that this does not need to use witness_assert() for read lock
773 panic("Unknown rm lock assertion: %d @ %s:%d", what, file,
798 db_show_rm(struct lock_object *lock)
806 rm = (struct rmlock *)lock;
822 db_printf("Backing write-lock (%s):\n", lc->lc_name);