Searched refs:lock_object (Results 1 - 25 of 42) sorted by path

12

/freebsd-9.3-release/sys/cddl/compat/opensolaris/sys/
H A Dmutex.h58 KASSERT(((lock)->lock_object.lo_flags & LO_ALLMASK) != \
H A Drwlock.h64 KASSERT(((lock)->lock_object.lo_flags & LO_ALLMASK) != \
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/dtrace/
H A Ddtrace.c3292 struct lock_object *li;
3393 sizeof (struct lock_object), mstate, vstate)) {
3403 sizeof (struct lock_object), mstate, vstate)) {
/freebsd-9.3-release/sys/ddb/
H A Ddb_ps.c301 struct lock_object *lock;
309 lock = (struct lock_object *)td->td_lock;
/freebsd-9.3-release/sys/dev/cxgb/
H A Dcxgb_adapter.h75 printf("destroying %s at %s:%d\n", (lock)->lock_object.lo_name, __FILE__, __LINE__); \
/freebsd-9.3-release/sys/kern/
H A Dkern_condvar.c95 _cv_wait(struct cv *cvp, struct lock_object *lock)
126 if (lock == &Giant.lock_object)
131 if (lock != &Giant.lock_object) {
146 if (lock != &Giant.lock_object) {
157 _cv_wait_unlock(struct cv *cvp, struct lock_object *lock)
170 KASSERT(lock != &Giant.lock_object,
212 _cv_wait_sig(struct cv *cvp, struct lock_object *lock)
243 if (lock == &Giant.lock_object)
249 if (lock != &Giant.lock_object) {
264 if (lock != &Giant.lock_object) {
[all...]
H A Dkern_lock.c98 if (LOCK_LOG_TEST(&(lk)->lock_object, 0)) \
101 if (LOCK_LOG_TEST(&(lk)->lock_object, 0)) \
111 WITNESS_RESTORE(&Giant.lock_object, Giant); \
116 WITNESS_SAVE(&Giant.lock_object, Giant); \
137 (((lk)->lock_object.lo_flags & LK_ADAPTIVE) != 0 && \
146 static void assert_lockmgr(struct lock_object *lock, int how);
148 static void db_show_lockmgr(struct lock_object *lock);
150 static void lock_lockmgr(struct lock_object *lock, int how);
152 static int owner_lockmgr(struct lock_object *lock, struct thread **owner);
154 static int unlock_lockmgr(struct lock_object *loc
[all...]
H A Dkern_mutex.c94 static void assert_mtx(struct lock_object *lock, int what);
96 static void db_show_mtx(struct lock_object *lock);
98 static void lock_mtx(struct lock_object *lock, int how);
99 static void lock_spin(struct lock_object *lock, int how);
101 static int owner_mtx(struct lock_object *lock, struct thread **owner);
103 static int unlock_mtx(struct lock_object *lock);
104 static int unlock_spin(struct lock_object *lock);
143 assert_mtx(struct lock_object *lock, int what)
150 lock_mtx(struct lock_object *lock, int how)
157 lock_spin(struct lock_object *loc
[all...]
H A Dkern_rmlock.c76 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, l
[all...]
H A Dkern_rwlock.c70 static void db_show_rwlock(struct lock_object *lock);
72 static void assert_rw(struct lock_object *lock, int what);
73 static void lock_rw(struct lock_object *lock, int how);
75 static int owner_rw(struct lock_object *lock, struct thread **owner);
77 static int unlock_rw(struct lock_object *lock);
124 assert_rw(struct lock_object *lock, int what)
131 lock_rw(struct lock_object *lock, int how)
143 unlock_rw(struct lock_object *lock)
160 owner_rw(struct lock_object *lock, struct thread **owner)
196 lock_init(&rw->lock_object,
[all...]
H A Dkern_sig.c2429 &p->p_mtx.lock_object, "Stopping for traced signal");
2705 &p->p_mtx.lock_object, "Catching SIGSTOP");
H A Dkern_sx.c96 WITNESS_SAVE(&Giant.lock_object, Giant); \
109 WITNESS_RESTORE(&Giant.lock_object, Giant); \
117 #define sx_recurse lock_object.lo_data
120 static void assert_sx(struct lock_object *lock, int what);
122 static void db_show_sx(struct lock_object *lock);
124 static void lock_sx(struct lock_object *lock, int how);
126 static int owner_sx(struct lock_object *lock, struct thread **owner);
128 static int unlock_sx(struct lock_object *lock);
149 assert_sx(struct lock_object *lock, int what)
156 lock_sx(struct lock_object *loc
[all...]
H A Dkern_synch.c148 _sleep(void *ident, struct lock_object *lock, int priority,
170 KASSERT(lock != NULL && lock != &Giant.lock_object,
214 if (lock == &Giant.lock_object)
217 if (lock != NULL && lock != &Giant.lock_object &&
258 if (lock != NULL && lock != &Giant.lock_object && !(priority & PDROP)) {
297 WITNESS_SAVE(&mtx->lock_object, mtx);
303 sleepq_add(ident, &mtx->lock_object, wmesg, SLEEPQ_SLEEP, 0);
339 WITNESS_RESTORE(&mtx->lock_object, mtx);
H A Dkern_timeout.c455 struct lock_object *c_lock;
499 if (c_lock == &Giant.lock_object) {
886 if (c->c_lock == &Giant.lock_object)
983 &cc->cc_lock.lock_object, "codrain",
1049 c->c_lock = &Giant.lock_object;
1058 struct lock_object *lock;
H A Dsched_4bsd.c1039 lock_profile_release_lock(&sched_lock.lock_object);
1051 lock_profile_obtain_lock_success(&sched_lock.lock_object,
1671 lock_profile_release_lock(&sched_lock.lock_object);
1689 lock_profile_obtain_lock_success(&sched_lock.lock_object,
H A Dsched_ule.c1884 lock_profile_release_lock(&TDQ_LOCKPTR(tdq)->lock_object);
1907 &TDQ_LOCKPTR(tdq)->lock_object, 0, 0, __FILE__, __LINE__);
2643 lock_profile_release_lock(&TDQ_LOCKPTR(tdq)->lock_object);
2675 &TDQ_LOCKPTR(tdq)->lock_object, 0, 0, __FILE__, __LINE__);
H A Dsubr_lock.c29 * lock_object structures.
72 lock_init(struct lock_object *lock, struct lock_class *class, const char *name,
97 lock_destroy(struct lock_object *lock)
109 struct lock_object *lock;
114 lock = (struct lock_object *)addr;
134 struct lock_object *lpo_obj;
459 lock_profile_lookup(struct lock_object *lo, int spin, const char *file,
497 lock_profile_object_lookup(struct lock_object *lo, int spin, const char *file,
526 lock_profile_obtain_lock_success(struct lock_object *lo, int contested,
591 lock_profile_release_lock(struct lock_object *l
[all...]
H A Dsubr_sleepqueue.c126 struct lock_object *sq_lock; /* (c) Associated lock. */
281 sleepq_add(void *wchan, struct lock_object *lock, const char *wmesg, int flags,
1175 struct lock_object *lock;
H A Dsubr_turnstile.c128 struct lock_object *ts_lockobj; /* (c) Lock we reference. */
538 turnstile_chain_lock(struct lock_object *lock)
547 turnstile_trywait(struct lock_object *lock)
573 struct lock_object *lock;
591 turnstile_lookup(struct lock_object *lock)
610 turnstile_chain_unlock(struct lock_object *lock)
680 struct lock_object *lock;
1054 struct lock_object *lock;
1064 lock = (struct lock_object *)addr;
1104 struct lock_object *loc
[all...]
H A Dsubr_witness.c196 struct lock_object *li_lock;
204 * or CPU. We can't simply embed the list in struct lock_object since a
287 struct lock_object *wh_lock;
328 struct lock_object *lock);
364 static void witness_setflag(struct lock_object *lock, int flag, int set);
736 struct lock_object *lock;
810 witness_init(struct lock_object *lock, const char *type)
850 witness_destroy(struct lock_object *lock)
1010 witness_defineorder(struct lock_object *lock1, struct lock_object *lock
[all...]
/freebsd-9.3-release/sys/sys/
H A D_callout.h43 struct lock_object;
56 struct lock_object *c_lock; /* lock to handle */
H A D_lock.h34 struct lock_object { struct
H A D_lockmgr.h39 struct lock_object lock_object; member in struct:lock
H A D_mutex.h38 struct lock_object lock_object; /* Common lock properties. */ member in struct:mtx
H A D_rmlock.h47 struct lock_object lock_object; member in struct:rmlock
51 struct lock_object _rm_wlock_object;

Completed in 216 milliseconds

12