Searched refs:lock_object (Results 1 - 25 of 44) sorted by relevance

12

/freebsd-10-stable/sys/sys/
H A D_sx.h38 struct lock_object lock_object; member in struct:sx
H A D_mutex.h46 struct lock_object lock_object; /* Common lock properties. */ member in struct:mtx
60 struct lock_object lock_object; /* Common lock properties. */ member in struct:mtx_padalign
H A D_rwlock.h44 struct lock_object lock_object; member in struct:rwlock
58 struct lock_object lock_object; member in struct:rwlock_padalign
H A D_lockmgr.h39 struct lock_object lock_object; member in struct:lock
H A D_lock.h34 struct lock_object { struct
H A Dturnstile.h74 struct lock_object;
93 void turnstile_chain_lock(struct lock_object *);
94 void turnstile_chain_unlock(struct lock_object *);
100 struct turnstile *turnstile_lookup(struct lock_object *);
102 struct turnstile *turnstile_trywait(struct lock_object *);
H A Dcondvar.h35 struct lock_object;
55 void _cv_wait(struct cv *cvp, struct lock_object *lock);
56 void _cv_wait_unlock(struct cv *cvp, struct lock_object *lock);
57 int _cv_wait_sig(struct cv *cvp, struct lock_object *lock);
58 int _cv_timedwait_sbt(struct cv *cvp, struct lock_object *lock,
60 int _cv_timedwait_sig_sbt(struct cv *cvp, struct lock_object *lock,
67 _cv_wait((cvp), &(lock)->lock_object)
69 _cv_wait_unlock((cvp), &(lock)->lock_object)
71 _cv_wait_sig((cvp), &(lock)->lock_object)
73 _cv_timedwait_sbt((cvp), &(lock)->lock_object, \
[all...]
H A D_rmlock.h47 struct lock_object lock_object; member in struct:rmlock
51 struct lock_object _rm_wlock_object;
H A D_callout.h43 struct lock_object;
59 struct lock_object *c_lock; /* lock to handle */
H A Dlock.h61 void (*lc_assert)(const struct lock_object *lock, int what);
62 void (*lc_ddb_show)(const struct lock_object *lock);
63 void (*lc_lock)(struct lock_object *lock, uintptr_t how);
64 int (*lc_owner)(const struct lock_object *lock,
66 uintptr_t (*lc_unlock)(struct lock_object *lock);
149 * lo - struct lock_object * for this lock
226 void lock_init(struct lock_object *, struct lock_class *,
228 void lock_destroy(struct lock_object *);
232 void witness_init(struct lock_object *, const char *);
233 void witness_destroy(struct lock_object *);
[all...]
H A Dlock_profile.h48 void lock_profile_obtain_lock_success(struct lock_object *lo, int contested,
50 void lock_profile_release_lock(struct lock_object *lo);
55 lock_profile_obtain_lock_failed(struct lock_object *lo, int *contested,
H A Dlockstat.h152 struct lock_object;
157 extern uint64_t lockstat_nsecs(struct lock_object *);
190 lock_profile_obtain_lock_success(&(lp)->lock_object, c, wt, f, l); \
198 lock_profile_release_lock(&(lp)->lock_object); \
216 lock_profile_obtain_lock_success(&(lp)->lock_object, c, wt, f, l)
219 lock_profile_release_lock(&(lp)->lock_object)
H A Dsleepqueue.h73 struct lock_object;
89 void sleepq_add(void *wchan, struct lock_object *lock, const char *wmesg,
H A Dlockmgr.h63 #define lk_recurse lock_object.lo_data
69 int __lockmgr_args(struct lock *lk, u_int flags, struct lock_object *ilk,
91 * strict prototype in order to safely use the lock_object member.
98 return (__lockmgr_args(lk, flags, (ilk != NULL) ? &ilk->lock_object :
107 return (__lockmgr_args(lk, flags, (ilk != NULL) ? &ilk->lock_object :
H A Dcallout.h94 void _callout_init_lock(struct callout *, struct lock_object *, int);
96 _callout_init_lock((c), ((mtx) != NULL) ? &(mtx)->lock_object : \
99 _callout_init_lock((c), ((rm) != NULL) ? &(rm)->lock_object : \
102 _callout_init_lock((c), ((rw) != NULL) ? &(rw)->lock_object : \
/freebsd-10-stable/sys/kern/
H A Dkern_sx.c94 WITNESS_SAVE(&Giant.lock_object, Giant); \
107 WITNESS_RESTORE(&Giant.lock_object, Giant); \
115 #define sx_recurse lock_object.lo_data
118 static void assert_sx(const struct lock_object *lock, int what);
120 static void db_show_sx(const struct lock_object *lock);
122 static void lock_sx(struct lock_object *lock, uintptr_t how);
124 static int owner_sx(const struct lock_object *lock, struct thread **owner);
126 static uintptr_t unlock_sx(struct lock_object *lock);
182 assert_sx(const struct lock_object *lock, int what)
189 lock_sx(struct lock_object *loc
[all...]
H A Dkern_mutex.c101 static void assert_mtx(const struct lock_object *lock, int what);
103 static void db_show_mtx(const struct lock_object *lock);
105 static void lock_mtx(struct lock_object *lock, uintptr_t how);
106 static void lock_spin(struct lock_object *lock, uintptr_t how);
108 static int owner_mtx(const struct lock_object *lock,
111 static uintptr_t unlock_mtx(struct lock_object *lock);
112 static uintptr_t unlock_spin(struct lock_object *lock);
182 assert_mtx(const struct lock_object *lock, int what)
189 lock_mtx(struct lock_object *lock, uintptr_t how)
196 lock_spin(struct lock_object *loc
[all...]
H A Dkern_rwlock.c73 static void db_show_rwlock(const struct lock_object *lock);
75 static void assert_rw(const struct lock_object *lock, int what);
76 static void lock_rw(struct lock_object *lock, uintptr_t how);
78 static int owner_rw(const struct lock_object *lock, struct thread **owner);
80 static uintptr_t unlock_rw(struct lock_object *lock);
163 assert_rw(const struct lock_object *lock, int what)
170 lock_rw(struct lock_object *lock, uintptr_t how)
182 unlock_rw(struct lock_object *lock)
199 owner_rw(const struct lock_object *lock, struct thread **owner)
238 lock_init(&rw->lock_object,
[all...]
H A Dkern_lock.c93 if (LOCK_LOG_TEST(&(lk)->lock_object, 0)) \
96 if (LOCK_LOG_TEST(&(lk)->lock_object, 0)) \
106 WITNESS_RESTORE(&Giant.lock_object, Giant); \
111 WITNESS_SAVE(&Giant.lock_object, Giant); \
133 (((lk)->lock_object.lo_flags & LK_ADAPTIVE) != 0 && \
142 static void assert_lockmgr(const struct lock_object *lock, int how);
144 static void db_show_lockmgr(const struct lock_object *lock);
146 static void lock_lockmgr(struct lock_object *lock, uintptr_t how);
148 static int owner_lockmgr(const struct lock_object *lock,
151 static uintptr_t unlock_lockmgr(struct lock_object *loc
[all...]
H A Dkern_rmlock.c76 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)
122 lock_rm(struct lock_object *lock, uintptr_t how)
137 unlock_rm(struct lock_object *lock)
180 owner_rm(const struct lock_object *lock, struct thread **owner)
304 lock_init(&rm->lock_object, l
[all...]
H A Dkern_condvar.c107 _cv_wait(struct cv *cvp, struct lock_object *lock)
138 if (lock == &Giant.lock_object)
143 if (lock != &Giant.lock_object) {
158 if (lock != &Giant.lock_object) {
169 _cv_wait_unlock(struct cv *cvp, struct lock_object *lock)
182 KASSERT(lock != &Giant.lock_object,
224 _cv_wait_sig(struct cv *cvp, struct lock_object *lock)
256 if (lock == &Giant.lock_object)
262 if (lock != &Giant.lock_object) {
277 if (lock != &Giant.lock_object) {
[all...]
H A Dkern_lockstat.c54 lockstat_nsecs(struct lock_object *lo)
H A Dkern_synch.c146 _sleep(void *ident, struct lock_object *lock, int priority,
169 KASSERT(lock != NULL && lock != &Giant.lock_object,
206 if (lock == &Giant.lock_object)
209 if (lock != NULL && lock != &Giant.lock_object &&
250 if (lock != NULL && lock != &Giant.lock_object && !(priority & PDROP)) {
290 WITNESS_SAVE(&mtx->lock_object, mtx);
296 sleepq_add(ident, &mtx->lock_object, wmesg, SLEEPQ_SLEEP, 0);
332 WITNESS_RESTORE(&mtx->lock_object, mtx);
H A Dsubr_lock.c29 * lock_object structures.
73 lock_init(struct lock_object *lock, struct lock_class *class, const char *name,
98 lock_destroy(struct lock_object *lock)
138 struct lock_object *lock;
143 lock = (struct lock_object *)addr;
163 struct lock_object *lpo_obj;
467 lock_profile_lookup(struct lock_object *lo, int spin, const char *file,
505 lock_profile_object_lookup(struct lock_object *lo, int spin, const char *file,
534 lock_profile_obtain_lock_success(struct lock_object *lo, int contested,
599 lock_profile_release_lock(struct lock_object *l
[all...]
/freebsd-10-stable/sys/cddl/compat/opensolaris/sys/
H A Dmutex.h58 KASSERT(((lock)->lock_object.lo_flags & LO_ALLMASK) != \

Completed in 119 milliseconds

12