Loading...
Defined in 2 files as a prototype:
Defined in 3 files as a function:
- kernel/locking/rwsem.c, line 1521 (as a function)
- tools/include/linux/rwsem.h, line 21 (as a function)
- tools/perf/util/rwsem.c, line 29 (as a function)
Referenced in 390 files:
- arch/alpha/kernel/osf_sys.c, 3 times
- arch/s390/kernel/sysinfo.c, line 365
- arch/s390/kvm/priv.c, line 675
- arch/sparc/kernel/sys_sparc_32.c, line 214
- arch/sparc/kernel/sys_sparc_64.c, line 549
- arch/x86/kernel/ldt.c, line 508
- arch/x86/kernel/umip.c, line 258
- arch/x86/kvm/svm/sev.c, line 323
- arch/x86/kvm/x86.c, line 10525
- block/blk-crypto-profile.c, line 265
- block/sed-opal.c, line 320
- crypto/af_alg.c, 2 times
- crypto/algapi.c, 2 times
- crypto/api.c, line 257
- crypto/asymmetric_keys/asymmetric_type.c, line 412
- crypto/crypto_user.c, 3 times
- crypto/proc.c, line 23
- drivers/accel/habanalabs/common/debugfs.c, line 1326
- drivers/accel/ivpu/ivpu_job.c, line 722
- drivers/accessibility/speakup/spk_ttyio.c, line 138
- drivers/acpi/cppc_acpi.c, line 1715
- drivers/acpi/glue.c, line 66
- drivers/block/rbd.c, 9 times
- drivers/block/zram/zram_drv.c, 17 times
- drivers/char/apm-emulation.c, 4 times
- drivers/char/tpm/tpm-chip.c, line 166
- drivers/comedi/comedi_fops.c, 3 times
- drivers/comedi/kcomedilib/kcomedilib_main.c, 3 times
- drivers/comedi/proc.c, line 36
- drivers/cpufreq/cpufreq.c, 2 times
- drivers/crypto/hisilicon/debugfs.c, 4 times
- drivers/crypto/hisilicon/qm.c, line 2305
- drivers/crypto/intel/qat/qat_common/adf_cfg.c, line 379
- drivers/crypto/intel/qat/qat_common/adf_sysfs.c, line 262
- drivers/crypto/intel/qat/qat_common/adf_sysfs_rl.c, 3 times
- drivers/cxl/core/hdm.c, 4 times
- drivers/cxl/core/mbox.c, line 1230
- drivers/cxl/core/memdev.c, line 676
- drivers/cxl/core/port.c, line 554
- drivers/cxl/core/region.c, 4 times
- drivers/gnss/core.c, line 162
- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c, line 3182
- drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c, 5 times
- drivers/gpu/drm/amd/amdkfd/kfd_topology.c, 9 times
- drivers/gpu/drm/gma500/mmu.c, 6 times
- drivers/gpu/drm/imagination/pvr_fw.c, line 1095
- drivers/gpu/drm/imagination/pvr_fw_trace.c, line 152
- drivers/gpu/drm/panthor/panthor_heap.c, 3 times
- drivers/gpu/drm/radeon/radeon_cs.c, line 675
- drivers/gpu/drm/radeon/radeon_display.c, 2 times
- drivers/gpu/drm/radeon/radeon_fence.c, line 982
- drivers/gpu/drm/radeon/radeon_gem.c, 4 times
- drivers/gpu/drm/radeon/radeon_object.c, line 203
- drivers/gpu/drm/ttm/ttm_pool.c, line 327
- drivers/gpu/drm/vmwgfx/vmwgfx_irq.c, line 193
- drivers/gpu/drm/xe/tests/xe_bo.c, line 288
- drivers/gpu/drm/xe/xe_gt_pagefault.c, 2 times
- drivers/gpu/drm/xe/xe_oa.c, line 608
- drivers/gpu/drm/xe/xe_pt.c, line 1301
- drivers/gpu/drm/xe/xe_vm.c, 6 times
- drivers/hid/hidraw.c, 2 times
- drivers/i2c/i2c-core-base.c, line 1402
- drivers/i3c/master.c, line 81
- drivers/infiniband/core/device.c, 24 times
- drivers/infiniband/core/netlink.c, 2 times
- drivers/infiniband/core/nldev.c, 2 times
- drivers/infiniband/core/rdma_core.c, line 194
- drivers/infiniband/core/roce_gid_mgmt.c, line 485
- drivers/infiniband/core/verbs.c, line 1168
- drivers/infiniband/ulp/ipoib/ipoib_main.c, 3 times
- drivers/iommu/intel/iommu.c, 2 times
- drivers/iommu/iommufd/device.c, 3 times
- drivers/iommu/iommufd/io_pagetable.c, 5 times
- drivers/iommu/iommufd/ioas.c, 2 times
- drivers/iommu/iommufd/selftest.c, line 78
- drivers/iommu/iommufd/vfio_compat.c, 2 times
- drivers/leds/led-triggers.c, 6 times
- drivers/leds/leds-bd2802.c, 2 times
- drivers/md/bcache/btree.h, line 251
- drivers/md/bcache/writeback.c, line 283
- drivers/md/dm-bufio.c, 2 times
- drivers/md/dm-cache-metadata.c, line 1031
- drivers/md/dm-clone-metadata.c, 2 times
- drivers/md/dm-crypt.c, line 2614
- drivers/md/dm-ioctl.c, 3 times
- drivers/md/dm-path-selector.c, 2 times
- drivers/md/dm-snap.c, 13 times
- drivers/md/dm-target.c, 3 times
- drivers/md/dm-thin-metadata.c, 17 times
- drivers/md/dm-thin.c, line 183
- drivers/md/dm-verity-verify-sig.c, line 43
- drivers/md/dm-zoned-metadata.c, line 375
- drivers/media/dvb-core/dvbdev.c, line 95
- drivers/mfd/intel-m10-bmc-core.c, 2 times
- drivers/misc/mei/bus.c, line 1569
- drivers/misc/mei/client.c, 3 times
- drivers/misc/mei/debugfs.c, line 28
- drivers/misc/sgi-gru/grukservices.c, line 227
- drivers/misc/vmw_balloon.c, line 1470
- drivers/mtd/ubi/eba.c, 3 times
- drivers/mtd/ubi/fastmap-wl.c, 4 times
- drivers/mtd/ubi/wl.c, 6 times
- drivers/net/ethernet/mellanox/mlx4/cmd.c, line 787
- drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c, line 696
- drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c, line 331
- drivers/net/ethernet/pensando/ionic/ionic_lif.c, 3 times
- drivers/net/ethernet/sfc/efx_common.c, line 144
- drivers/net/ethernet/sfc/falcon/efx.c, 3 times
- drivers/net/ethernet/sfc/mcdi_filters.c, 10 times
- drivers/net/ethernet/sfc/siena/efx_common.c, line 148
- drivers/net/ethernet/sfc/siena/farch.c, 3 times
- drivers/net/ppp/ppp_generic.c, line 805
- drivers/net/wireguard/cookie.c, 3 times
- drivers/net/wireguard/netlink.c, 4 times
- drivers/net/wireguard/noise.c, 6 times
- drivers/nvdimm/security.c, line 68
- drivers/nvme/host/fabrics.c, line 1308
- drivers/nvme/target/admin-cmd.c, line 407
- drivers/nvme/target/auth.c, line 148
- drivers/nvme/target/configfs.c, 2 times
- drivers/nvme/target/core.c, 3 times
- drivers/nvme/target/discovery.c, line 199
- drivers/pci/bus.c, line 487
- drivers/pci/hotplug/cpci_hotplug_core.c, 3 times
- drivers/pci/hotplug/pciehp_hpc.c, line 1013
- drivers/pci/pci-acpi.c, line 1336
- drivers/pci/pci.c, line 4855
- drivers/pci/pcie/aspm.c, 9 times
- drivers/pci/pcie/bwctrl.c, line 109
- drivers/pci/pcie/pme.c, 4 times
- drivers/pci/search.c, 2 times
- drivers/pci/setup-bus.c, 2 times
- drivers/pci/slot.c, 2 times
- drivers/pcmcia/cs.c, line 236
- drivers/platform/surface/aggregator/controller.c, line 942
- drivers/platform/surface/surface_acpi_notify.c, line 91
- drivers/platform/surface/surface_aggregator_cdev.c, line 220
- drivers/platform/surface/surface_dtx.c, line 603
- drivers/platform/x86/msi-wmi-platform.c, line 249
- drivers/platform/x86/wmi.c, line 1210
- drivers/power/sequencing/core.c, line 994
- drivers/rapidio/rio_cm.c, 6 times
- drivers/s390/block/dcssblk.c, 3 times
- drivers/scsi/cxlflash/main.c, line 3502
- drivers/scsi/cxlflash/superpipe.c, 5 times
- drivers/scsi/cxlflash/vlun.c, line 456
- drivers/staging/greybus/audio_manager.c, 3 times
- drivers/tty/n_tty.c, 7 times
- drivers/tty/tty_io.c, 2 times
- drivers/tty/tty_ioctl.c, 6 times
- drivers/tty/tty_ldisc.c, line 571
- drivers/ufs/core/ufshcd.c, line 3240
- drivers/usb/core/file.c, line 38
- drivers/usb/core/hcd-pci.c, 2 times
- drivers/usb/core/hub.c, line 3034
- drivers/usb/gadget/function/f_mass_storage.c, 2 times
- drivers/usb/gadget/function/storage_common.c, 3 times
- drivers/usb/misc/usblcd.c, 2 times
- drivers/usb/serial/xr_serial.c, line 852
- drivers/vdpa/mlx5/net/mlx5_vnet.c, line 3544
- drivers/vdpa/vdpa.c, 10 times
- drivers/vdpa/vdpa_user/vduse_dev.c, line 1014
- drivers/vfio/container.c, line 191
- drivers/vfio/pci/vfio_pci_core.c, line 1673
- drivers/vfio/pci/vfio_pci_rdwr.c, 2 times
- drivers/video/fbdev/matrox/matroxfb_base.c, 8 times
- drivers/video/fbdev/matrox/matroxfb_crtc2.c, 2 times
- drivers/xen/xenbus/xenbus_xs.c, 2 times
- fs/9p/fid.c, 2 times
- fs/adfs/dir.c, 2 times
- fs/afs/callback.c, 2 times
- fs/afs/cell.c, 2 times
- fs/afs/dir_silly.c, line 246
- fs/afs/dynroot.c, line 208
- fs/afs/proc.c, line 208
- fs/afs/write.c, line 226
- fs/bcachefs/btree_update_interior.c, line 1198
- fs/bcachefs/checksum.c, line 534
- fs/bcachefs/fs-ioctl.c, line 405
- fs/bcachefs/io_misc.c, 2 times
- fs/bcachefs/recovery_passes.c, line 204
- fs/btrfs/backref.c, 3 times
- fs/btrfs/block-group.c, 3 times
- fs/btrfs/ctree.c, 2 times
- fs/btrfs/dev-replace.c, 3 times
- fs/btrfs/disk-io.c, line 3036
- fs/btrfs/extent-tree.c, 4 times
- fs/btrfs/file.c, line 1848
- fs/btrfs/inode.c, 3 times
- fs/btrfs/ioctl.c, 4 times
- fs/btrfs/scrub.c, line 2971
- fs/btrfs/send.c, 8 times
- fs/btrfs/space-info.c, 2 times
- fs/btrfs/sysfs.c, 2 times
- fs/btrfs/volumes.c, 2 times
- fs/btrfs/zoned.c, 3 times
- fs/cachefiles/cache.c, line 395
- fs/ceph/addr.c, 2 times
- fs/ceph/caps.c, 3 times
- fs/ceph/file.c, 2 times
- fs/ceph/inode.c, line 2534
- fs/ceph/io.c, 2 times
- fs/ceph/ioctl.c, line 198
- fs/ceph/mds_client.c, 3 times
- fs/ceph/quota.c, 5 times
- fs/ceph/xattr.c, 3 times
- fs/configfs/file.c, 6 times
- fs/coredump.c, line 317
- fs/crypto/hooks.c, line 204
- fs/crypto/keyring.c, 3 times
- fs/crypto/keysetup.c, line 487
- fs/crypto/keysetup_v1.c, line 112
- fs/dlm/lock.c, line 206
- fs/dlm/lowcomms.c, 4 times
- fs/erofs/data.c, 2 times
- fs/erofs/super.c, line 226
- fs/exfat/inode.c, line 515
- fs/ext2/xattr.c, 2 times
- fs/ext4/extents.c, 2 times
- fs/ext4/ialloc.c, line 1189
- fs/ext4/inline.c, 10 times
- fs/ext4/inode.c, 4 times
- fs/ext4/ioctl.c, line 778
- fs/ext4/migrate.c, line 497
- fs/ext4/xattr.c, 3 times
- fs/f2fs/f2fs.h, line 2188
- fs/f2fs/gc.c, line 1012
- fs/f2fs/node.c, 2 times
- fs/f2fs/segment.c, 3 times
- fs/fat/inode.c, line 318
- fs/fs-writeback.c, line 503
- fs/fuse/dax.c, 2 times
- fs/fuse/dev.c, 5 times
- fs/gfs2/bmap.c, line 859
- fs/gfs2/recovery.c, line 509
- fs/gfs2/trans.c, 2 times
- fs/jffs2/wbuf.c, line 966
- fs/jffs2/xattr.c, 2 times
- fs/jfs/jfs_discard.c, line 86
- fs/jfs/xattr.c, 2 times
- fs/kernfs/dir.c, 7 times
- fs/kernfs/file.c, line 913
- fs/kernfs/inode.c, 2 times
- fs/kernfs/mount.c, line 269
- fs/kernfs/symlink.c, line 119
- fs/lockd/clntproc.c, 3 times
- fs/namespace.c, 6 times
- fs/netfs/fscache_cache.c, 2 times
- fs/netfs/fscache_volume.c, line 512
- fs/nfs/nfs4proc.c, 2 times
- fs/nilfs2/bmap.c, 4 times
- fs/nilfs2/cpfile.c, 5 times
- fs/nilfs2/inode.c, 3 times
- fs/nilfs2/ioctl.c, 9 times
- fs/nilfs2/segment.c, line 223
- fs/nilfs2/sufile.c, 3 times
- fs/nilfs2/super.c, 3 times
- fs/nilfs2/sysfs.c, 23 times
- fs/nilfs2/the_nilfs.c, line 109
- fs/nilfs2/the_nilfs.h, line 293
- fs/ntfs3/attrib.c, line 906
- fs/ntfs3/frecord.c, 4 times
- fs/ntfs3/fsntfs.c, line 785
- fs/ntfs3/index.c, 5 times
- fs/ntfs3/record.c, 3 times
- fs/ntfs3/run.c, line 1119
- fs/ocfs2/acl.c, 3 times
- fs/ocfs2/aops.c, 3 times
- fs/ocfs2/cluster/heartbeat.c, line 1472
- fs/ocfs2/dlm/dlmdomain.c, line 2272
- fs/ocfs2/dlmglue.c, line 2876
- fs/ocfs2/extent_map.c, 2 times
- fs/ocfs2/file.c, line 2210
- fs/ocfs2/journal.c, line 350
- fs/ocfs2/quota_global.c, line 316
- fs/ocfs2/quota_local.c, line 603
- fs/ocfs2/refcounttree.c, line 430
- fs/ocfs2/xattr.c, 4 times
- fs/orangefs/file.c, 2 times
- fs/orangefs/xattr.c, 2 times
- fs/overlayfs/params.c, line 719
- fs/overlayfs/super.c, line 225
- fs/proc/kcore.c, line 340
- fs/proc/nommu.c, line 84
- fs/quota/quota.c, line 998
- fs/quota/quota_v1.c, line 166
- fs/quota/quota_v2.c, 4 times
- fs/smb/client/connect.c, line 2173
- fs/smb/client/dfs_cache.c, 6 times
- fs/smb/client/file.c, 6 times
- fs/smb/server/connection.c, 5 times
- fs/smb/server/mgmt/share_config.c, line 231
- fs/smb/server/mgmt/user_session.c, 2 times
- fs/smb/server/oplock.c, 3 times
- fs/smb/server/smb2pdu.c, line 7385
- fs/smb/server/smb_common.c, line 653
- fs/smb/server/transport_ipc.c, line 271
- fs/smb/server/vfs_cache.c, line 544
- fs/super.c, line 58
- fs/sync.c, line 159
- fs/ubifs/auth.c, line 286
- fs/ubifs/budget.c, 2 times
- fs/ubifs/dir.c, line 178
- fs/ubifs/journal.c, 2 times
- fs/ubifs/xattr.c, 2 times
- fs/udf/inode.c, line 421
- fs/xfs/xfs_log_cil.c, line 1754
- include/linux/fs.h, 3 times
- include/linux/mmap_lock.h, line 144
- include/linux/rmap.h, line 136
- include/linux/rwsem.h, 3 times
- ipc/msg.c, line 498
- ipc/sem.c, line 1328
- ipc/shm.c, 2 times
- ipc/util.c, line 850
- kernel/bpf/crypto.c, line 113
- kernel/bpf/offload.c, 17 times
- kernel/events/uprobes.c, 2 times
- kernel/locking/locktorture.c, line 755
- kernel/locking/rwsem.c, line 1528
- kernel/notifier.c, 2 times
- kernel/rcu/rcutorture.c, line 3742
- kernel/rcu/refscale.c, 2 times
- kernel/sched/autogroup.c, line 275
- kernel/sys.c, 4 times
- kernel/taskstats.c, line 121
- kernel/time/posix-clock.c, 2 times
- kernel/trace/trace.c, line 928
- kernel/trace/trace_dynevent.c, line 30
- kernel/trace/trace_output.c, 2 times
- kernel/umh.c, 4 times
- kernel/utsname.c, line 69
- kernel/utsname_sysctl.c, line 49
- lib/codetag.c, line 34
- lib/digsig.c, line 84
- lib/locking-selftest.c, line 254
- lib/test_lockup.c, line 187
- lib/test_objpool.c, line 224
- lib/test_vmalloc.c, line 461
- mm/hugetlb.c, 2 times
- mm/shmem_quota.c, line 126
- mm/userfaultfd.c, 6 times
- mm/util.c, line 1195
- net/bluetooth/bnep/core.c, 3 times
- net/bluetooth/cmtp/core.c, 3 times
- net/bluetooth/hidp/core.c, 2 times
- net/ceph/debugfs.c, 2 times
- net/ceph/osd_client.c, 9 times
- net/core/dev.c, line 9293
- net/core/net-sysfs.c, line 154
- net/core/net_namespace.c, line 602
- net/dns_resolver/dns_query.c, line 136
- net/netfilter/nf_conntrack_core.c, line 2407
- net/netfilter/nf_flow_table_offload.c, line 854
- net/netlink/genetlink.c, 5 times
- net/nfc/nci/uart.c, line 410
- net/openvswitch/datapath.c, line 2688
- net/rds/ib_rdma.c, line 528
- net/rds/transport.c, 4 times
- net/sched/act_api.c, line 1893
- net/sched/cls_api.c, 4 times
- net/smc/af_smc.c, line 548
- net/smc/smc_core.c, 3 times
- net/tls/tls_device.c, 5 times
- net/wireless/wext-core.c, line 351
- security/integrity/evm/evm_crypto.c, line 436
- security/keys/dh.c, line 35
- security/keys/encrypted-keys/encrypted.c, line 317
- security/keys/encrypted-keys/masterkey_trusted.c, line 37
- security/keys/key.c, line 717
- security/keys/keyctl.c, line 807
- security/keys/persistent.c, line 91
- security/keys/process_keys.c, line 728
- security/keys/request_key.c, line 288
- security/keys/request_key_auth.c, line 187
- security/selinux/include/xfrm.h, line 52
- sound/core/seq/seq_clientmgr.c, 2 times
- sound/core/seq/seq_virmidi.c, line 83
- sound/soc/fsl/fsl_xcvr.c, 2 times
- sound/soc/intel/atom/sst-atom-controls.c, line 1437
- sound/usb/midi.c, line 1083
- tools/include/linux/rwsem.h, line 41
- tools/perf/util/cgroup.c, line 584
- tools/perf/util/comm.c, line 140
- tools/perf/util/dsos.c, 3 times
- tools/perf/util/env.c, 2 times
- tools/perf/util/header.c, 2 times
- tools/perf/util/maps.c, 10 times
- tools/perf/util/thread.c, 3 times
- tools/perf/util/threads.c, 3 times