/freebsd-current/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | freebsd_rwlock.h | 32 #include_next <sys/rwlock.h>
|
/freebsd-current/sys/cddl/compat/opensolaris/sys/ |
H A D | freebsd_rwlock.h | 30 #include_next <sys/rwlock.h>
|
/freebsd-current/contrib/llvm-project/llvm/lib/Support/ |
H A D | RWMutex.cpp | 44 pthread_rwlock_t* rwlock = 49 bzero(rwlock, sizeof(pthread_rwlock_t)); 52 // Initialize the rwlock 53 int errorcode = pthread_rwlock_init(rwlock, nullptr); 58 data_ = rwlock; 64 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); 65 assert(rwlock != nullptr); 66 pthread_rwlock_destroy(rwlock); 67 free(rwlock); 73 pthread_rwlock_t* rwlock [all...] |
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/ |
H A D | tst.rw.d | 41 @[rw_read_held((struct rwlock *)&`unp_global_rwlock)] = count(); 42 @[rw_read_held((struct rwlock *)rand())] = count(); 48 @[rw_write_held((struct rwlock *)&`unp_global_rwlock)] = count(); 49 @[rw_write_held((struct rwlock *)rand())] = count(); 55 @[rw_iswriter((struct rwlock *)&`unp_global_rwlock)] = count(); 56 @[rw_iswriter((struct rwlock *)rand())] = count();
|
/freebsd-current/lib/libthr/thread/ |
H A D | thr_rwlock.c | 59 static int init_static(struct pthread *thread, pthread_rwlock_t *rwlock); 60 static int init_rwlock(pthread_rwlock_t *rwlock, pthread_rwlock_t *rwlock_out); 63 check_and_init_rwlock(pthread_rwlock_t *rwlock, pthread_rwlock_t *rwlock_out) argument 65 if (__predict_false(*rwlock == THR_PSHARED_PTR || 66 *rwlock <= THR_RWLOCK_DESTROYED)) 67 return (init_rwlock(rwlock, rwlock_out)); 68 *rwlock_out = *rwlock; 73 init_rwlock(pthread_rwlock_t *rwlock, pthread_rwlock_t *rwlock_out) argument 78 if (*rwlock == THR_PSHARED_PTR) { 79 prwlock = __thr_pshared_offpage(rwlock, 97 rwlock_init(pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr) argument 120 _thr_rwlock_destroy(pthread_rwlock_t *rwlock) argument 143 init_static(struct pthread *thread, pthread_rwlock_t *rwlock) argument 160 _thr_rwlock_init(pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr) argument 169 rwlock_rdlock_common(pthread_rwlock_t *rwlock, const struct timespec *abstime) argument 230 _Tthr_rwlock_rdlock(pthread_rwlock_t *rwlock) argument 237 _pthread_rwlock_timedrdlock(pthread_rwlock_t * __restrict rwlock, const struct timespec * __restrict abstime) argument 245 _Tthr_rwlock_tryrdlock(pthread_rwlock_t *rwlock) argument 283 _Tthr_rwlock_trywrlock(pthread_rwlock_t *rwlock) argument 302 rwlock_wrlock_common(pthread_rwlock_t *rwlock, const struct timespec *abstime) argument 348 _Tthr_rwlock_wrlock(pthread_rwlock_t *rwlock) argument 355 _pthread_rwlock_timedwrlock(pthread_rwlock_t * __restrict rwlock, const struct timespec * __restrict abstime) argument 363 _Tthr_rwlock_unlock(pthread_rwlock_t *rwlock) argument [all...] |
H A D | thr_umtx.h | 67 int __thr_rwlock_rdlock(struct urwlock *rwlock, int flags, 69 int __thr_rwlock_wrlock(struct urwlock *rwlock, 71 int __thr_rwlock_unlock(struct urwlock *rwlock) __hidden; 74 void _thr_rwl_rdlock(struct urwlock *rwlock) __hidden; 75 void _thr_rwl_wrlock(struct urwlock *rwlock) __hidden; 76 void _thr_rwl_unlock(struct urwlock *rwlock) __hidden; 184 _thr_rwlock_tryrdlock(struct urwlock *rwlock, int flags) argument 189 (rwlock->rw_flags & URWLOCK_PREFER_READER) != 0) 193 state = rwlock->rw_state; 198 if (atomic_cmpset_acq_32(&rwlock 207 _thr_rwlock_trywrlock(struct urwlock *rwlock) argument 224 _thr_rwlock_rdlock(struct urwlock *rwlock, int flags, struct timespec *tsp) argument 233 _thr_rwlock_wrlock(struct urwlock *rwlock, struct timespec *tsp) argument 242 _thr_rwlock_unlock(struct urwlock *rwlock) argument [all...] |
H A D | thr_umtx.c | 278 __thr_rwlock_rdlock(struct urwlock *rwlock, int flags, argument 294 return (_umtx_op_err(rwlock, UMTX_OP_RW_RDLOCK, flags, 299 __thr_rwlock_wrlock(struct urwlock *rwlock, const struct timespec *tsp) argument 314 return (_umtx_op_err(rwlock, UMTX_OP_RW_WRLOCK, 0, (void *)tm_size, 319 __thr_rwlock_unlock(struct urwlock *rwlock) argument 322 return (_umtx_op_err(rwlock, UMTX_OP_RW_UNLOCK, 0, NULL, NULL)); 326 _thr_rwl_rdlock(struct urwlock *rwlock) argument 331 if (_thr_rwlock_tryrdlock(rwlock, URWLOCK_PREFER_READER) == 0) 333 ret = __thr_rwlock_rdlock(rwlock, URWLOCK_PREFER_READER, NULL); 342 _thr_rwl_wrlock(struct urwlock *rwlock) argument 358 _thr_rwl_unlock(struct urwlock *rwlock) argument [all...] |
/freebsd-current/sys/sys/ |
H A D | _rwlock.h | 42 struct rwlock { struct 48 * Members of struct rwlock_padalign must mirror members of struct rwlock. 49 * rwlock_padalign rwlocks can use the rwlock(9) API transparently without 54 * the rwlock.
|
H A D | rwlock.h | 134 int __rw_try_wlock_int(struct rwlock *rw LOCK_FILE_LINE_ARG_DEF); 137 void __rw_rlock_int(struct rwlock *rw LOCK_FILE_LINE_ARG_DEF); 139 int __rw_try_rlock_int(struct rwlock *rw LOCK_FILE_LINE_ARG_DEF); 141 void _rw_runlock_cookie_int(struct rwlock *rw LOCK_FILE_LINE_ARG_DEF); 147 int __rw_try_upgrade_int(struct rwlock *rw LOCK_FILE_LINE_ARG_DEF); 149 void __rw_downgrade_int(struct rwlock *rw LOCK_FILE_LINE_ARG_DEF); 157 * Top-level macros to provide lock cookie once the actual rwlock is passed. 158 * They will also prevent passing a malformed object to the rwlock KPI by 184 __rw_rlock_int((struct rwlock *)rw) 186 _rw_runlock_cookie_int((struct rwlock *)r [all...] |
/freebsd-current/crypto/openssl/crypto/ |
H A D | threads_win.c | 44 CRYPTO_win_rwlock *rwlock; local 48 rwlock = lock; 49 InitializeSRWLock(&rwlock->lock); 74 CRYPTO_win_rwlock *rwlock = lock; local 76 AcquireSRWLockShared(&rwlock->lock); 86 CRYPTO_win_rwlock *rwlock = lock; local 88 AcquireSRWLockExclusive(&rwlock->lock); 89 rwlock->exclusive = 1; 99 CRYPTO_win_rwlock *rwlock = lock; local 101 if (rwlock [all...] |
/freebsd-current/sys/contrib/vchiq/interface/compat/ |
H A D | vchi_bsd.h | 39 #include <sys/rwlock.h> 163 typedef struct rwlock rwlock_t; 166 struct rwlock name; \ 168 #define rwlock_init(rwlock) rw_init(rwlock, "VCHI rwlock") 169 #define read_lock(rwlock) rw_rlock(rwlock) 170 #define read_unlock(rwlock) rw_unlock(rwlock) [all...] |
/freebsd-current/sys/compat/linuxkpi/common/include/linux/ |
H A D | rwlock.h | 34 #include <sys/rwlock.h> 37 typedef struct rwlock rwlock_t;
|
/freebsd-current/sys/dev/wg/ |
H A D | wg_cookie.h | 31 struct rwlock cm_lock; 40 struct rwlock cc_key_lock;
|
/freebsd-current/sys/dev/mem/ |
H A D | memutil.c | 34 #include <sys/rwlock.h> 37 static struct rwlock mr_lock;
|
/freebsd-current/sys/kern/ |
H A D | kern_rwlock.c | 44 #include <sys/rwlock.h> 63 * Return the rwlock address when the lock cookie address is provided. 64 * This functionality assumes that struct rwlock* have a member named rw_lock. 66 #define rwlock2rw(c) (__containerof(c, struct rwlock, rw_lock)) 98 static SYSCTL_NODE(_debug, OID_AUTO, rwlock, 100 "rwlock debugging"); 164 rw_assert((const struct rwlock *)lock, what); 170 struct rwlock *rw; 172 rw = (struct rwlock *)lock; 182 struct rwlock *r [all...] |
H A D | kern_loginclass.c | 57 #include <sys/rwlock.h> 68 static struct rwlock loginclasses_lock;
|
/freebsd-current/sys/dev/cxgbe/ |
H A D | t4_smt.h | 58 struct rwlock lock;
|
H A D | t4_l2t.h | 82 struct rwlock lock;
|
/freebsd-current/sys/ofed/drivers/infiniband/core/ |
H A D | ib_cache.c | 116 rwlock_t rwlock; member in struct:ib_gid_table 171 /* This function expects that rwlock will be write locked in all 181 __releases(&table->rwlock) __acquires(&table->rwlock) 193 write_unlock_irq(&table->rwlock); 203 write_lock_irq(&table->rwlock); 258 /* rwlock should be read locked */ 347 write_lock_irq(&table->rwlock); 365 write_unlock_irq(&table->rwlock); 380 write_lock_irq(&table->rwlock); [all...] |
/freebsd-current/contrib/netbsd-tests/rump/kernspace/ |
H A D | lockme.c | 38 #include <sys/rwlock.h>
|
/freebsd-current/sys/riscv/riscv/ |
H A D | ptrace_machdep.c | 49 #include <sys/rwlock.h>
|
/freebsd-current/sys/netpfil/ipfw/pmod/ |
H A D | ip_fw_pmod.c | 34 #include <sys/rwlock.h>
|
/freebsd-current/sys/netpfil/ipfw/nptv6/ |
H A D | ip_fw_nptv6.c | 34 #include <sys/rwlock.h>
|
/freebsd-current/sys/amd64/vmm/ |
H A D | vmm_mem.c | 34 #include <sys/rwlock.h>
|
/freebsd-current/usr.sbin/nscd/ |
H A D | config.h | 103 pthread_rwlock_t rwlock; member in struct:configuration
|