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

12

/freebsd-10.2-release/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 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);
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.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_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 Dcallout.h86 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 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 :
/freebsd-10.2-release/sys/kern/
H A Dkern_sx.c92 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 Dkern_rwlock.c81 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 Dkern_mutex.c100 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 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)
298 lock_init(&rm->lock_object, l
[all...]
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)
244 if (lock == &Giant.lock_object)
250 if (lock != &Giant.lock_object) {
265 if (lock != &Giant.lock_object) {
[all...]
H A Dkern_lockstat.c54 lockstat_nsecs(struct lock_object *lo)
H A Dkern_synch.c153 _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 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;
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 Dmutex.h58 KASSERT(((lock)->lock_object.lo_flags & LO_ALLMASK) != \

Completed in 202 milliseconds

12