| /xnu-11215/osfmk/arm64/sptm/pmap/ |
| H A D | pmap_internal.h | 141 lck_rw_init(&pmap->rwlock, &pmap_lck_grp, 0); in pmap_lock_init() 152 lck_rw_destroy(&pmap->rwlock, &pmap_lck_grp); in pmap_lock_destroy() 197 LCK_RW_ASSERT(&pmap->rwlock, LCK_RW_ASSERT_SHARED); in pmap_assert_locked() 205 LCK_RW_ASSERT(&pmap->rwlock, LCK_RW_ASSERT_HELD); in pmap_assert_locked() 223 LCK_RW_ASSERT(&pmap->rwlock, LCK_RW_ASSERT_HELD); in pmap_assert_locked_any() 265 lck_rw_lock_shared(&pmap->rwlock); in pmap_lock() 269 lck_rw_lock_exclusive(&pmap->rwlock); in pmap_lock() 297 ret = lck_rw_try_lock_shared(&pmap->rwlock); in pmap_try_lock() 303 ret = lck_rw_try_lock_exclusive(&pmap->rwlock); in pmap_try_lock() 348 lck_rw_unlock_shared(&pmap->rwlock); in pmap_unlock() [all …]
|
| H A D | pmap.h | 334 decl_lck_rw_data(, rwlock);
|
| /xnu-11215/osfmk/arm/pmap/ |
| H A D | pmap_internal.h | 201 lck_rw_init(&pmap->rwlock, &pmap_lck_grp, 0); in pmap_lock_init() 202 pmap->rwlock.lck_rw_can_sleep = FALSE; in pmap_lock_init() 213 lck_rw_destroy(&pmap->rwlock, &pmap_lck_grp); in pmap_lock_destroy() 228 LCK_RW_ASSERT(&pmap->rwlock, LCK_RW_ASSERT_SHARED); in pmap_assert_locked() 247 LCK_RW_ASSERT(&pmap->rwlock, LCK_RW_ASSERT_HELD); in pmap_assert_locked_any() 269 lck_rw_lock_shared(&pmap->rwlock); in pmap_lock() 272 lck_rw_lock_exclusive(&pmap->rwlock); in pmap_lock() 352 ret = lck_rw_try_lock_shared(&pmap->rwlock); in pmap_try_lock() 355 ret = lck_rw_try_lock_exclusive(&pmap->rwlock); in pmap_try_lock() 405 lck_rw_unlock_shared(&pmap->rwlock); in pmap_unlock() [all …]
|
| H A D | pmap.h | 364 decl_lck_rw_data(, rwlock);
|
| H A D | pmap.c | 13860 lck_rw_unlock_exclusive(&cd_entry->rwlock); 13896 lck_rw_unlock_exclusive(&cd_entry->rwlock); 13943 lck_rw_unlock_exclusive(&cd_entry->rwlock); 14008 lck_rw_unlock_shared(&cd_entry->rwlock); 14175 lck_rw_unlock_exclusive(&cd_entry->rwlock);
|
| /xnu-11215/bsd/sys/ |
| H A D | pthread_shims.h | 97 …int (*psynch_rw_longrdlock)(proc_t p, user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint… 98 …int (*psynch_rw_rdlock)(proc_t p, user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t… 99 …int (*psynch_rw_unlock)(proc_t p, user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t… 100 …int (*psynch_rw_wrlock)(proc_t p, user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t… 101 …int (*psynch_rw_yieldwrlock)(proc_t p, user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uin…
|
| /xnu-11215/bsd/security/audit/ |
| H A D | audit_bsd.h | 178 struct rwlock { struct 273 void _audit_rw_init(struct rwlock *lp, const char *name); 274 void _audit_rw_destroy(struct rwlock *lp);
|
| H A D | audit_bsd.c | 179 _audit_rw_init(struct rwlock *lp, const char *lckname) in _audit_rw_init() 181 _audit_rw_init(struct rwlock *lp, __unused const char *lckname) in _audit_rw_init() 193 _audit_rw_destroy(struct rwlock *lp) in _audit_rw_destroy()
|
| H A D | audit_bsm_klib.c | 74 static struct rwlock evclass_lock;
|
| H A D | audit.c | 191 static struct rwlock audit_kinfo_lock;
|
| H A D | audit_session.c | 122 static struct rwlock se_entry_lck; /* (1) lock for se_link above */ 315 static struct rwlock audit_sdev_lock;
|
| H A D | audit_pipe.c | 195 static struct rwlock audit_pipe_lock;
|
| /xnu-11215/bsd/pthread/ |
| H A D | pthread_shims.c | 444 …return pthread_functions->psynch_rw_longrdlock(p, uap->rwlock, uap->lgenval, uap->ugenval, uap->rw… in psynch_rw_longrdlock() 450 …return pthread_functions->psynch_rw_rdlock(p, uap->rwlock, uap->lgenval, uap->ugenval, uap->rw_wc,… in psynch_rw_rdlock() 456 …return pthread_functions->psynch_rw_unlock(p, uap->rwlock, uap->lgenval, uap->ugenval, uap->rw_wc,… in psynch_rw_unlock() 468 …return pthread_functions->psynch_rw_wrlock(p, uap->rwlock, uap->lgenval, uap->ugenval, uap->rw_wc,… in psynch_rw_wrlock() 474 …return pthread_functions->psynch_rw_yieldwrlock(p, uap->rwlock, uap->lgenval, uap->ugenval, uap->r… in psynch_rw_yieldwrlock()
|
| /xnu-11215/tests/ |
| H A D | stackshot_block_owner_14362384.m | 346 /* perform various actions with a rwlock in kernel memory. note that, since we aren't allowed 347 * to go to user space while still holding a rwlock, the lock-acquiring actions in this kernel 387 T_ASSERT_POSIX_SUCCESS(ret, "sysctl: %s kernel rwlock", action_name); 399 T_QUIET; T_ASSERT_POSIX_SUCCESS(ret, "Getting unslid location of kernel rwlock"); 400 …T_EXPECT_EQ(context, unslid_krwlck_address, "Context should match unslid location of rwlock in ker… 449 // acquires a kernel rwlock for writing, and then waits on a kernel semaphore. 458 // attempts to acquire a kernel rwlock for reading, and doesn't wait on a semaphore afterwards. 699 // this thread should spawn, acquire a kernel rwlock for write, and then wait on a semaphore 703 // this thread should spawn and try to acquire the same kernel rwlock for read, but block 802 …check_python(stackshot, __func__, "thread \\d+: pthread rwlock %llx for reading", (long long)&rwlc…
|
| /xnu-11215/osfmk/vm/ |
| H A D | pmap_cs.h | 421 decl_lck_rw_data(, rwlock);
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | memory.py | 2450 def GetRWLockSummary(rwlock): argument 2457 if not rwlock: 2461 if rwlock.lck_rw_type != GetEnumValue('lck_type_t', 'LCK_TYPE_RW'): 2463 lock_word = rwlock.lck_rw 2484 out_str += "Write owner\t\t: {:#x}\n".format(getThreadFromCtidInternal(rwlock.lck_rw_owner))
|