/freebsd-10.2-release/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 | 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); 148 * lo - struct lock_object * for this lock 202 void lock_init(struct lock_object *, struct lock_class *, 204 void lock_destroy(struct lock_object *); 207 void witness_init(struct lock_object *, const char *); 208 void witness_destroy(struct 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_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 | callout.h | 86 void _callout_init_lock(struct callout *, struct lock_object *, int); 88 _callout_init_lock((c), ((mtx) != NULL) ? &(mtx)->lock_object : \ 91 _callout_init_lock((c), ((rm) != NULL) ? &(rm)->lock_object : \ 94 _callout_init_lock((c), ((rw) != NULL) ? &(rw)->lock_object : \
|
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 :
|
/freebsd-10.2-release/sys/kern/ |
H A D | kern_sx.c | 92 WITNESS_SAVE(&Giant.lock_object, Giant); \ 105 WITNESS_RESTORE(&Giant.lock_object, Giant); \ 113 #define sx_recurse lock_object.lo_data 116 static void assert_sx(const struct lock_object *lock, int what); 118 static void db_show_sx(const struct lock_object *lock); 120 static void lock_sx(struct lock_object *lock, uintptr_t how); 122 static int owner_sx(const struct lock_object *lock, struct thread **owner); 124 static uintptr_t unlock_sx(struct lock_object *lock); 153 assert_sx(const struct lock_object *lock, int what) 160 lock_sx(struct lock_object *loc [all...] |
H A D | kern_rwlock.c | 81 static void db_show_rwlock(const struct lock_object *lock); 83 static void assert_rw(const struct lock_object *lock, int what); 84 static void lock_rw(struct lock_object *lock, uintptr_t how); 86 static int owner_rw(const struct lock_object *lock, struct thread **owner); 88 static uintptr_t unlock_rw(struct lock_object *lock); 135 assert_rw(const struct lock_object *lock, int what) 142 lock_rw(struct lock_object *lock, uintptr_t how) 154 unlock_rw(struct lock_object *lock) 171 owner_rw(const struct lock_object *lock, struct thread **owner) 208 lock_init(&rw->lock_object, [all...] |
H A D | kern_mutex.c | 100 static void assert_mtx(const struct lock_object *lock, int what); 102 static void db_show_mtx(const struct lock_object *lock); 104 static void lock_mtx(struct lock_object *lock, uintptr_t how); 105 static void lock_spin(struct lock_object *lock, uintptr_t how); 107 static int owner_mtx(const struct lock_object *lock, 110 static uintptr_t unlock_mtx(struct lock_object *lock); 111 static uintptr_t unlock_spin(struct lock_object *lock); 150 assert_mtx(const struct lock_object *lock, int what) 157 lock_mtx(struct lock_object *lock, uintptr_t how) 164 lock_spin(struct lock_object *loc [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) 298 lock_init(&rm->lock_object, l [all...] |
H A D | kern_condvar.c | 95 _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) 244 if (lock == &Giant.lock_object) 250 if (lock != &Giant.lock_object) { 265 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 | 153 _sleep(void *ident, struct lock_object *lock, int priority, 176 KASSERT(lock != NULL && lock != &Giant.lock_object, 219 if (lock == &Giant.lock_object) 222 if (lock != NULL && lock != &Giant.lock_object && 263 if (lock != NULL && lock != &Giant.lock_object && !(priority & PDROP)) { 303 WITNESS_SAVE(&mtx->lock_object, mtx); 309 sleepq_add(ident, &mtx->lock_object, wmesg, SLEEPQ_SLEEP, 0); 345 WITNESS_RESTORE(&mtx->lock_object, mtx);
|
H A D | subr_lock.c | 29 * 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; 438 lock_profile_lookup(struct lock_object *lo, int spin, const char *file, 476 lock_profile_object_lookup(struct lock_object *lo, int spin, const char *file, 505 lock_profile_obtain_lock_success(struct lock_object *lo, int contested, 570 lock_profile_release_lock(struct lock_object *l [all...] |
/freebsd-10.2-release/sys/cddl/compat/opensolaris/sys/ |
H A D | mutex.h | 58 KASSERT(((lock)->lock_object.lo_flags & LO_ALLMASK) != \
|