/freebsd-10-stable/sys/sys/ |
H A D | _sx.h | 38 struct lock_object lock_object; member in struct:sx
|
H A D | _mutex.h | 46 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.h | 44 struct lock_object lock_object; member in struct:rwlock 58 struct lock_object lock_object; member in struct:rwlock_padalign
|
H A D | _lockmgr.h | 39 struct lock_object lock_object; member in struct:lock
|
H A D | _lock.h | 34 struct lock_object { struct
|
H A D | turnstile.h | 74 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 D | condvar.h | 35 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.h | 47 struct lock_object lock_object; member in struct:rmlock 51 struct lock_object _rm_wlock_object;
|
H A D | _callout.h | 43 struct lock_object; 59 struct lock_object *c_lock; /* lock to handle */
|
H A D | lock.h | 61 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 D | lock_profile.h | 48 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 D | lockstat.h | 152 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 D | sleepqueue.h | 73 struct lock_object; 89 void sleepq_add(void *wchan, struct lock_object *lock, const char *wmesg,
|
H A D | lockmgr.h | 63 #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 D | callout.h | 94 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 D | kern_sx.c | 94 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 D | kern_mutex.c | 101 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 D | kern_rwlock.c | 73 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 D | kern_lock.c | 93 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 D | kern_rmlock.c | 76 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 D | kern_condvar.c | 107 _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 D | kern_lockstat.c | 54 lockstat_nsecs(struct lock_object *lo)
|
H A D | kern_synch.c | 146 _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 D | subr_lock.c | 29 * 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 D | mutex.h | 58 KASSERT(((lock)->lock_object.lo_flags & LO_ALLMASK) != \
|