Home
last modified time | relevance | path

Searched refs:rw_lock (Results 1 – 19 of 19) sorted by relevance

/linux-6.12.1/tools/testing/selftests/powerpc/dscr/
Ddscr_default_test.c75 pthread_rwlock_t *rw_lock; member
83 pthread_rwlock_t *rw_lock = args->rw_lock; in dscr_default_random_thread() local
96 FAIL_IF_EXIT(pthread_rwlock_rdlock(rw_lock)); in dscr_default_random_thread()
100 FAIL_IF_EXIT(pthread_rwlock_unlock(rw_lock)); in dscr_default_random_thread()
108 FAIL_IF_EXIT(pthread_rwlock_wrlock(rw_lock)); in dscr_default_random_thread()
112 FAIL_IF_EXIT(pthread_rwlock_unlock(rw_lock)); in dscr_default_random_thread()
124 pthread_rwlock_t rw_lock; in dscr_default_random_test() local
131 FAIL_IF(pthread_rwlock_init(&rw_lock, &rwlock_attr)); in dscr_default_random_test()
138 threads[i].rw_lock = &rw_lock; in dscr_default_random_test()
149 FAIL_IF(pthread_rwlock_destroy(&rw_lock)); in dscr_default_random_test()
/linux-6.12.1/drivers/parisc/
Dpdc_stable.c87 rwlock_t rw_lock; /* to protect path entry access */ member
230 read_lock(&entry->rw_lock); in pdcspath_hwpath_read()
233 read_unlock(&entry->rw_lock); in pdcspath_hwpath_read()
313 write_lock(&entry->rw_lock); in pdcspath_hwpath_write()
322 write_unlock(&entry->rw_lock); in pdcspath_hwpath_write()
350 read_lock(&entry->rw_lock); in pdcspath_layer_read()
353 read_unlock(&entry->rw_lock); in pdcspath_layer_read()
410 write_lock(&entry->rw_lock); in pdcspath_layer_write()
418 write_unlock(&entry->rw_lock); in pdcspath_layer_write()
551 read_lock(&pathentry->rw_lock); in pdcs_auto_read()
[all …]
/linux-6.12.1/fs/ntfs3/
Drecord.c124 struct rw_semaphore *rw_lock = NULL; in mi_read() local
128 rw_lock = &mft_ni->file.run_lock; in mi_read()
129 down_read(rw_lock); in mi_read()
134 if (rw_lock) in mi_read()
135 up_read(rw_lock); in mi_read()
147 if (rw_lock) { in mi_read()
149 down_write(rw_lock); in mi_read()
153 if (rw_lock) { in mi_read()
154 up_write(rw_lock); in mi_read()
160 if (rw_lock) in mi_read()
[all …]
Dfsntfs.c362 down_write_nested(&wnd->rw_lock, BITMAP_MUTEX_CLUSTERS); in ntfs_look_for_free_space()
443 up_write(&wnd->rw_lock); in ntfs_look_for_free_space()
458 down_read_nested(&wnd->rw_lock, BITMAP_MUTEX_CLUSTERS); in ntfs_check_for_free_space()
461 up_read(&wnd->rw_lock); in ntfs_check_for_free_space()
469 down_read_nested(&wnd->rw_lock, BITMAP_MUTEX_MFT); in ntfs_check_for_free_space()
472 up_read(&wnd->rw_lock); in ntfs_check_for_free_space()
531 down_write_nested(&sbi->used.bitmap.rw_lock, BITMAP_MUTEX_CLUSTERS); in ntfs_extend_mft()
535 up_write(&sbi->used.bitmap.rw_lock); in ntfs_extend_mft()
571 down_write_nested(&wnd->rw_lock, BITMAP_MUTEX_MFT); in ntfs_look_free_mft()
728 up_write(&wnd->rw_lock); in ntfs_look_free_mft()
[all …]
Drun.c1089 down_read_nested(&wnd->rw_lock, BITMAP_MUTEX_CLUSTERS); in run_unpack_ex()
1092 up_read(&wnd->rw_lock); in run_unpack_ex()
1099 if (down_write_trylock(&wnd->rw_lock)) { in run_unpack_ex()
1103 up_write(&wnd->rw_lock); in run_unpack_ex()
Dbitmap.c650 init_rwsem(&wnd->rw_lock); in wnd_init()
1451 down_read_nested(&wnd->rw_lock, BITMAP_MUTEX_CLUSTERS); in ntfs_trim_fs()
1504 up_read(&wnd->rw_lock); in ntfs_trim_fs()
Dntfs_fs.h145 struct rw_semaphore rw_lock; member
/linux-6.12.1/drivers/leds/
Dleds-ns2.c51 rwlock_t rw_lock; /* Lock GPIOs. */ member
88 write_lock_irqsave(&led->rw_lock, flags); in ns2_led_set_mode()
100 write_unlock_irqrestore(&led->rw_lock, flags); in ns2_led_set_mode()
208 rwlock_init(&led->rw_lock); in ns2_led_register()
/linux-6.12.1/drivers/power/sequencing/
Dcore.c237 struct rw_semaphore rw_lock; member
514 init_rwsem(&pwrseq->rw_lock); in pwrseq_device_register()
547 guard(rwsem_write)(&pwrseq->rw_lock); in pwrseq_device_unregister()
626 guard(rwsem_read)(&pwrseq->rw_lock); in pwrseq_match_device()
798 lockdep_assert_held_read(&pwrseq->rw_lock); in pwrseq_unit_enable()
835 lockdep_assert_held_read(&pwrseq->rw_lock); in pwrseq_unit_disable()
904 guard(rwsem_read)(&pwrseq->rw_lock); in pwrseq_power_on()
953 guard(rwsem_read)(&pwrseq->rw_lock); in pwrseq_power_off()
/linux-6.12.1/tools/testing/selftests/rcutorture/configs/lock/
DLOCK04.boot1 locktorture.torture_type=rw_lock
/linux-6.12.1/Documentation/translations/zh_CN/locking/
Dspinlocks.rst57rw_lock)有时是有用的。它们允许多个读者同时出现在同一个临界区,但是如果有人想
/linux-6.12.1/drivers/md/bcache/
Dbtree.h248 static inline void rw_lock(bool w, struct btree *b, int level) in rw_lock() function
354 rw_lock(_w, _b, _b->level); \
Dbtree.c1036 rw_lock(write, b, level); in bch_btree_node_get()
2091 rw_lock(0, c->root, c->root->level); in bch_btree_check()
2453 rw_lock(true, b, b->level); in bch_btree_insert_check_key()
Dwriteback.c992 rw_lock(0, b, b->level); in bch_sectors_dirty_init()
Dsysfs.c673 rw_lock(false, b, b->level); in bch_root_usage()
/linux-6.12.1/drivers/firmware/arm_ffa/
Ddriver.c865 rwlock_t rw_lock; member
880 read_lock(&partition->rw_lock); in __do_sched_recv_cb()
883 read_unlock(&partition->rw_lock); in __do_sched_recv_cb()
1086 write_lock(&partition->rw_lock); in ffa_sched_recv_cb_update()
1090 write_unlock(&partition->rw_lock); in ffa_sched_recv_cb_update()
1097 write_unlock(&partition->rw_lock); in ffa_sched_recv_cb_update()
1435 rwlock_init(&info->rw_lock); in ffa_setup_partitions()
1456 rwlock_init(&info->rw_lock); in ffa_setup_partitions()
/linux-6.12.1/Documentation/locking/
Dlocktorture.rst58 - "rw_lock":
Dspinlocks.rst57 (rw_lock) versions of the spinlocks are sometimes useful. They allow multiple
/linux-6.12.1/Documentation/translations/it_IT/locking/
Dlocktorture.rst65 - "rw_lock":