Lines Matching defs:lock
53 * Allocate a single lock object, waiting for memory if needed.
73 * Allocate a single lock object, failing if no memory available.
95 * Add a single reference to a lock object. A reference to the object
99 mutex_obj_hold(kmutex_t *lock)
101 struct kmutexobj *mo = (struct kmutexobj *)lock;
104 "%s: lock %p: mo->mo_magic (%#x) != MUTEX_OBJ_MAGIC (%#x)",
107 "%s: lock %p: mo->mo_refcnt (%#x) == 0",
116 * Drop a reference from a lock object. If the last reference is being
120 mutex_obj_free(kmutex_t *lock)
122 struct kmutexobj *mo = (struct kmutexobj *)lock;
125 "%s: lock %p: mo->mo_magic (%#x) != MUTEX_OBJ_MAGIC (%#x)",
128 "%s: lock %p: mo->mo_refcnt (%#x) == 0",
144 * Return the reference count on a lock object.
147 mutex_obj_refcnt(kmutex_t *lock)
149 struct kmutexobj *mo = (struct kmutexobj *)lock;