/linux-6.3-rc2/fs/btrfs/ |
A D | dev-replace.c | 356 down_read(&dev_replace->rwsem); in btrfs_run_dev_replace() 359 up_read(&dev_replace->rwsem); in btrfs_run_dev_replace() 362 up_read(&dev_replace->rwsem); in btrfs_run_dev_replace() 443 up_write(&dev_replace->rwsem); in btrfs_run_dev_replace() 684 up_write(&dev_replace->rwsem); in btrfs_dev_replace_start() 854 up_read(&dev_replace->rwsem); in btrfs_dev_replace_finishing() 861 up_read(&dev_replace->rwsem); in btrfs_dev_replace_finishing() 963 up_write(&dev_replace->rwsem); in btrfs_dev_replace_finishing() 1051 up_read(&dev_replace->rwsem); in btrfs_dev_replace_status() 1162 up_write(&dev_replace->rwsem); in btrfs_dev_replace_suspend_for_unmount() [all …]
|
/linux-6.3-rc2/drivers/gnss/ |
A D | core.c | 48 down_write(&gdev->rwsem); in gnss_open() 60 up_write(&gdev->rwsem); in gnss_open() 72 down_write(&gdev->rwsem); in gnss_release() 81 up_write(&gdev->rwsem); in gnss_release() 162 down_read(&gdev->rwsem); in gnss_write() 167 up_read(&gdev->rwsem); in gnss_write() 252 init_rwsem(&gdev->rwsem); in gnss_allocate_device() 303 down_write(&gdev->rwsem); in gnss_deregister_device() 309 up_write(&gdev->rwsem); in gnss_deregister_device()
|
/linux-6.3-rc2/kernel/time/ |
A D | posix-clock.c | 24 down_read(&clk->rwsem); in get_posix_clock() 29 up_read(&clk->rwsem); in get_posix_clock() 36 up_read(&clk->rwsem); in put_posix_clock() 114 down_read(&clk->rwsem); in posix_clock_open() 130 up_read(&clk->rwsem); in posix_clock_open() 166 init_rwsem(&clk->rwsem); in posix_clock_register() 186 down_write(&clk->rwsem); in posix_clock_unregister() 188 up_write(&clk->rwsem); in posix_clock_unregister()
|
/linux-6.3-rc2/kernel/ |
A D | notifier.c | 265 down_write(&nh->rwsem); in __blocking_notifier_chain_register() 267 up_write(&nh->rwsem); in __blocking_notifier_chain_register() 328 down_write(&nh->rwsem); in blocking_notifier_chain_unregister() 330 up_write(&nh->rwsem); in blocking_notifier_chain_unregister() 346 down_read(&nh->rwsem); in blocking_notifier_call_chain_robust() 348 up_read(&nh->rwsem); in blocking_notifier_call_chain_robust() 381 down_read(&nh->rwsem); in blocking_notifier_call_chain() 383 up_read(&nh->rwsem); in blocking_notifier_call_chain()
|
/linux-6.3-rc2/include/linux/ |
A D | rmap.h | 33 struct rw_semaphore rwsem; /* W: modification, R: walking the list */ member 121 down_write(&anon_vma->root->rwsem); in anon_vma_lock_write() 126 up_write(&anon_vma->root->rwsem); in anon_vma_unlock_write() 131 down_read(&anon_vma->root->rwsem); in anon_vma_lock_read() 136 return down_read_trylock(&anon_vma->root->rwsem); in anon_vma_trylock_read() 141 up_read(&anon_vma->root->rwsem); in anon_vma_unlock_read()
|
A D | notifier.h | 66 struct rw_semaphore rwsem; member 85 init_rwsem(&(name)->rwsem); \ 101 .rwsem = __RWSEM_INITIALIZER((name).rwsem), \
|
A D | posix-clock.h | 89 struct rw_semaphore rwsem; member
|
A D | gnss.h | 45 struct rw_semaphore rwsem; member
|
A D | ipc_namespace.h | 21 struct rw_semaphore rwsem; member
|
A D | rwsem.h | 144 extern void __init_rwsem(struct rw_semaphore *rwsem, const char *name,
|
/linux-6.3-rc2/drivers/cpufreq/ |
A D | cpufreq.c | 261 up_write(&policy->rwsem); in cpufreq_cpu_release() 285 down_write(&policy->rwsem); in cpufreq_cpu_acquire() 961 up_read(&policy->rwsem); in show() 979 up_write(&policy->rwsem); in store() 1123 up_write(&policy->rwsem); in cpufreq_add_policy_cpu() 1145 up_write(&policy->rwsem); in handle_update() 1175 up_write(&policy->rwsem); in cpufreq_policy_put_kobj() 1518 up_write(&policy->rwsem); in cpufreq_online() 1547 up_write(&policy->rwsem); in cpufreq_online() 1646 up_write(&policy->rwsem); in cpufreq_offline() [all …]
|
/linux-6.3-rc2/tools/perf/util/bpf_skel/ |
A D | lock_contention.bpf.c | 187 struct rw_semaphore___old *rwsem = (void *)lock; in get_lock_owner() local 188 owner = (unsigned long)BPF_CORE_READ(rwsem, owner); in get_lock_owner() 190 struct rw_semaphore___new *rwsem = (void *)lock; in get_lock_owner() local 191 owner = BPF_CORE_READ(rwsem, owner.counter); in get_lock_owner() 195 struct rw_semaphore *rwsem = (void *)lock; in get_lock_owner() 196 owner = BPF_CORE_READ(rwsem, owner.counter); in get_lock_owner()
|
/linux-6.3-rc2/drivers/leds/ |
A D | leds-bd2802.c | 71 struct rw_semaphore rwsem; member 330 down_write(&led->rwsem); \ 332 up_write(&led->rwsem); \ 435 down_read(&led->rwsem); in bd2802_show_adv_conf() 440 up_read(&led->rwsem); in bd2802_show_adv_conf() 453 down_write(&led->rwsem); in bd2802_store_adv_conf() 458 up_write(&led->rwsem); in bd2802_store_adv_conf() 478 down_read(&led->rwsem); \ 480 up_read(&led->rwsem); \ 496 up_write(&led->rwsem); \ [all …]
|
/linux-6.3-rc2/tools/perf/Documentation/ |
A D | perf-lock.txt | 184 semaphore, spinlock, rwlock, rwlock:R, rwlock:W, rwsem, rwsem:R, rwsem:W, 189 suffix are shortcuts for the both variants. Ex) rwsem = rwsem:R + rwsem:W.
|
/linux-6.3-rc2/kernel/locking/ |
A D | Makefile | 6 obj-y += mutex.o semaphore.o rwsem.o percpu-rwsem.o
|
/linux-6.3-rc2/ipc/ |
A D | util.c | 119 init_rwsem(&ids->rwsem); in ipc_init_ids() 344 down_write(&ids->rwsem); in ipcget_new() 346 up_write(&ids->rwsem); in ipcget_new() 408 down_write(&ids->rwsem); in ipcget_public() 434 up_write(&ids->rwsem); in ipcget_public() 850 down_read(&ids->rwsem); in sysvipc_proc_start() 877 up_read(&ids->rwsem); in sysvipc_proc_stop()
|
A D | shm.c | 373 down_write(&shm_ids(ns).rwsem); in __shm_close() 392 up_write(&shm_ids(ns).rwsem); in __shm_close() 432 down_write(&shm_ids(ns).rwsem); in shm_destroy_orphaned() 435 up_write(&shm_ids(ns).rwsem); in shm_destroy_orphaned() 507 down_write(&shm_ids(ns).rwsem); in exit_shm() 529 up_write(&shm_ids(ns).rwsem); in exit_shm() 1003 down_write(&shm_ids(ns).rwsem); in shmctl_down() 1042 up_write(&shm_ids(ns).rwsem); in shmctl_down() 1058 up_read(&shm_ids(ns).rwsem); in shmctl_ipc_info() 1078 up_read(&shm_ids(ns).rwsem); in shmctl_shm_info() [all …]
|
A D | namespace.c | 130 down_write(&ids->rwsem); in free_ipcs() 143 up_write(&ids->rwsem); in free_ipcs()
|
/linux-6.3-rc2/fs/erofs/ |
A D | data.c | 207 down_read(&devs->rwsem); in erofs_map_dev() 210 up_read(&devs->rwsem); in erofs_map_dev() 217 up_read(&devs->rwsem); in erofs_map_dev() 219 down_read(&devs->rwsem); in erofs_map_dev() 238 up_read(&devs->rwsem); in erofs_map_dev()
|
A D | super.c | 295 down_read(&sbi->devs->rwsem); in erofs_scan_devices() 322 up_read(&sbi->devs->rwsem); in erofs_scan_devices() 569 down_write(&ctx->devs->rwsem); in erofs_fc_parse_param() 571 up_write(&ctx->devs->rwsem); in erofs_fc_parse_param() 916 init_rwsem(&ctx->devs->rwsem); in erofs_init_fs_context()
|
/linux-6.3-rc2/arch/loongarch/include/asm/ |
A D | Kbuild | 9 generic-y += rwsem.h
|
/linux-6.3-rc2/drivers/gpu/drm/vmwgfx/ |
A D | vmwgfx_irq.c | 193 down_read(&fifo_state->rwsem); in vmw_fallback_wait() 237 up_read(&fifo_state->rwsem); in vmw_fallback_wait()
|
A D | vmwgfx_cmd.c | 120 init_rwsem(&fifo->rwsem); in vmw_fifo_create() 454 down_write(&fifo_state->rwsem); in vmw_local_fifo_commit() 466 up_write(&fifo_state->rwsem); in vmw_local_fifo_commit()
|
/linux-6.3-rc2/tools/perf/util/ |
A D | python-ext-sources | 39 util/rwsem.c
|
/linux-6.3-rc2/mm/ |
A D | rmap.c | 131 if (rwsem_is_locked(&anon_vma->root->rwsem)) { in anon_vma_free() 248 up_write(&root->rwsem); in lock_anon_vma_root() 250 down_write(&root->rwsem); in lock_anon_vma_root() 258 up_write(&root->rwsem); in unlock_anon_vma_root() 455 init_rwsem(&anon_vma->rwsem); in anon_vma_ctor() 553 if (down_read_trylock(&root_anon_vma->rwsem)) { in folio_lock_anon_vma_read() 560 up_read(&root_anon_vma->rwsem); in folio_lock_anon_vma_read()
|