Loading...
Defined in 2 files as a prototype:
Defined in 3 files as a function:
- kernel/locking/rwsem.c, line 1619 (as a function)
- tools/include/linux/rwsem.h, line 26 (as a function)
- tools/perf/util/rwsem.c, line 39 (as a function)
Referenced in 440 files:
- arch/alpha/kernel/osf_sys.c, 3 times
- arch/s390/kernel/sysinfo.c, line 376
- arch/s390/kvm/priv.c, 2 times
- arch/sparc/kernel/sys_sparc_32.c, 2 times
- arch/sparc/kernel/sys_sparc_64.c, 2 times
- arch/x86/kernel/ldt.c, line 537
- arch/x86/kernel/umip.c, line 263
- arch/x86/kvm/svm/sev.c, line 249
- arch/x86/kvm/x86.c, line 10593
- block/blk-crypto-profile.c, line 267
- block/sed-opal.c, line 328
- crypto/af_alg.c, 4 times
- crypto/algapi.c, 2 times
- crypto/api.c, line 266
- crypto/asymmetric_keys/asymmetric_type.c, line 425
- crypto/crypto_user_base.c, 3 times
- crypto/proc.c, line 34
- drivers/accel/habanalabs/common/debugfs.c, line 1339
- drivers/accel/ivpu/ivpu_job.c, line 530
- drivers/accessibility/speakup/spk_ttyio.c, line 140
- drivers/acpi/cppc_acpi.c, 2 times
- drivers/acpi/glue.c, line 73
- drivers/block/rbd.c, 10 times
- drivers/block/zram/zram_drv.c, 20 times
- drivers/char/apm-emulation.c, 4 times
- drivers/char/tpm/tpm-chip.c, 2 times
- drivers/comedi/comedi_fops.c, 6 times
- drivers/comedi/kcomedilib/kcomedilib_main.c, 3 times
- drivers/comedi/proc.c, line 43
- drivers/cpufreq/cpufreq.c, 2 times
- drivers/crypto/hisilicon/debugfs.c, 4 times
- drivers/crypto/hisilicon/qm.c, line 2243
- drivers/crypto/intel/qat/qat_common/adf_cfg.c, line 350
- drivers/crypto/intel/qat/qat_common/adf_sysfs.c, line 265
- 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 1192
- drivers/cxl/core/memdev.c, 10 times
- drivers/cxl/core/port.c, line 556
- drivers/cxl/core/region.c, 14 times
- drivers/dax/bus.c, 5 times
- drivers/firewire/core-cdev.c, line 465
- drivers/firewire/core-device.c, 7 times
- drivers/gnss/core.c, line 167
- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_arcturus.c, line 339
- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c, 3 times
- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c, 5 times
- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c, 2 times
- 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 1139
- drivers/gpu/drm/imagination/pvr_fw_trace.c, line 165
- drivers/gpu/drm/radeon/radeon_cs.c, 5 times
- drivers/gpu/drm/radeon/radeon_device.c, line 1868
- drivers/gpu/drm/radeon/radeon_display.c, 2 times
- drivers/gpu/drm/radeon/radeon_fence.c, 5 times
- drivers/gpu/drm/radeon/radeon_gem.c, 8 times
- drivers/gpu/drm/radeon/radeon_object.c, line 206
- drivers/gpu/drm/ttm/ttm_pool.c, line 340
- drivers/gpu/drm/vmwgfx/vmwgfx_irq.c, line 237
- drivers/gpu/drm/xe/tests/xe_bo.c, line 279
- drivers/gpu/drm/xe/xe_exec.c, 2 times
- drivers/gpu/drm/xe/xe_exec_queue.c, 2 times
- drivers/gpu/drm/xe/xe_gt_pagefault.c, 2 times
- drivers/gpu/drm/xe/xe_pt.c, 5 times
- drivers/gpu/drm/xe/xe_vm.c, 8 times
- drivers/hid/hidraw.c, 2 times
- drivers/i2c/i2c-core-base.c, line 1385
- drivers/i3c/master.c, line 93
- drivers/infiniband/core/device.c, 28 times
- drivers/infiniband/core/netlink.c, 2 times
- drivers/infiniband/core/nldev.c, 2 times
- drivers/infiniband/core/rdma_core.c, 5 times
- drivers/infiniband/core/roce_gid_mgmt.c, line 501
- drivers/infiniband/core/uverbs_cmd.c, 2 times
- drivers/infiniband/core/uverbs_main.c, 2 times
- drivers/infiniband/core/verbs.c, 2 times
- drivers/infiniband/sw/siw/siw_qp.c, line 120
- drivers/infiniband/sw/siw/siw_qp_tx.c, 2 times
- drivers/infiniband/sw/siw/siw_verbs.c, 4 times
- drivers/infiniband/ulp/ipoib/ipoib_ib.c, line 1191
- drivers/infiniband/ulp/ipoib/ipoib_main.c, 4 times
- drivers/input/misc/yealink.c, 4 times
- drivers/iommu/intel/iommu.c, 2 times
- drivers/iommu/iommufd/device.c, 4 times
- drivers/iommu/iommufd/io_pagetable.c, 7 times
- drivers/iommu/iommufd/ioas.c, line 107
- drivers/iommu/iommufd/selftest.c, 2 times
- drivers/iommu/iommufd/vfio_compat.c, 2 times
- drivers/leds/led-triggers.c, 9 times
- drivers/leds/leds-bd2802.c, 2 times
- drivers/md/bcache/btree.h, line 260
- drivers/md/bcache/writeback.c, line 288
- drivers/md/dm-bufio.c, 2 times
- drivers/md/dm-cache-metadata.c, 2 times
- drivers/md/dm-cache-target.c, line 1053
- drivers/md/dm-clone-metadata.c, 2 times
- drivers/md/dm-crypt.c, 2 times
- drivers/md/dm-ioctl.c, 3 times
- drivers/md/dm-path-selector.c, 2 times
- drivers/md/dm-snap.c, 20 times
- drivers/md/dm-target.c, 3 times
- drivers/md/dm-thin-metadata.c, 18 times
- drivers/md/dm-thin.c, line 188
- drivers/md/dm-verity-verify-sig.c, line 61
- drivers/md/dm-zoned-metadata.c, line 385
- drivers/media/dvb-core/dvbdev.c, 2 times
- drivers/mfd/intel-m10-bmc-core.c, 2 times
- drivers/misc/mei/bus.c, line 1572
- drivers/misc/mei/client.c, 3 times
- drivers/misc/mei/debugfs.c, line 53
- drivers/misc/sgi-gru/grukservices.c, 3 times
- drivers/misc/vmw_balloon.c, 3 times
- drivers/mtd/ubi/eba.c, 5 times
- drivers/mtd/ubi/fastmap-wl.c, 2 times
- drivers/mtd/ubi/wl.c, 14 times
- drivers/net/ethernet/mellanox/mlx4/cmd.c, line 797
- drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c, line 699
- drivers/net/ethernet/mellanox/mlx5/core/eswitch.c, 2 times
- drivers/net/ethernet/mellanox/mlx5/core/fs_core.c, line 433
- drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c, 2 times
- drivers/net/ethernet/pensando/ionic/ionic_lif.c, 3 times
- drivers/net/ethernet/sfc/efx.h, line 232
- drivers/net/ethernet/sfc/efx_common.c, line 146
- drivers/net/ethernet/sfc/falcon/efx.c, 3 times
- drivers/net/ethernet/sfc/falcon/efx.h, line 268
- drivers/net/ethernet/sfc/mcdi_filters.c, 10 times
- drivers/net/ethernet/sfc/siena/efx.h, line 209
- drivers/net/ethernet/sfc/siena/efx_common.c, line 150
- drivers/net/ethernet/sfc/siena/farch.c, 3 times
- drivers/net/ppp/ppp_generic.c, line 784
- drivers/net/wireguard/cookie.c, 4 times
- drivers/net/wireguard/netlink.c, 6 times
- drivers/net/wireguard/noise.c, 6 times
- drivers/net/wireless/ath/wil6210/main.c, 2 times
- drivers/nvdimm/security.c, 3 times
- drivers/nvme/host/core.c, 7 times
- drivers/nvme/host/fabrics.c, 2 times
- drivers/nvme/host/ioctl.c, 2 times
- drivers/nvme/host/multipath.c, 3 times
- drivers/nvme/target/admin-cmd.c, line 310
- drivers/nvme/target/auth.c, line 217
- drivers/nvme/target/core.c, 6 times
- drivers/nvme/target/discovery.c, 2 times
- drivers/pci/bus.c, line 423
- drivers/pci/hotplug/cpci_hotplug_core.c, 6 times
- drivers/pci/hotplug/pciehp_core.c, line 181
- drivers/pci/hotplug/pciehp_hpc.c, 3 times
- drivers/pci/hotplug/pciehp_pci.c, 2 times
- drivers/pci/pci-acpi.c, line 1318
- drivers/pci/pci.c, 3 times
- drivers/pci/pcie/aspm.c, 9 times
- drivers/pci/pcie/pme.c, 4 times
- drivers/pci/search.c, 2 times
- drivers/pci/setup-bus.c, 4 times
- drivers/pci/slot.c, 2 times
- drivers/pcmcia/cs.c, 2 times
- drivers/platform/chrome/cros_ec_ishtp.c, 2 times
- drivers/platform/surface/aggregator/controller.c, line 954
- drivers/platform/surface/surface_acpi_notify.c, 4 times
- drivers/platform/surface/surface_aggregator_cdev.c, 10 times
- drivers/platform/surface/surface_dtx.c, 10 times
- drivers/platform/x86/wmi.c, line 1273
- drivers/rapidio/rio_cm.c, 10 times
- drivers/s390/block/dcssblk.c, 3 times
- drivers/scsi/cxlflash/main.c, line 3560
- drivers/scsi/cxlflash/superpipe.c, 5 times
- drivers/scsi/cxlflash/vlun.c, line 452
- drivers/staging/greybus/audio_manager.c, 3 times
- drivers/tty/n_tty.c, 8 times
- drivers/tty/tty_io.c, 2 times
- drivers/tty/tty_ioctl.c, 6 times
- drivers/tty/tty_ldisc.c, line 567
- drivers/ufs/core/ufshcd.c, 3 times
- drivers/usb/core/file.c, line 49
- drivers/usb/core/hcd-pci.c, 2 times
- drivers/usb/core/hub.c, line 3141
- drivers/usb/gadget/function/f_mass_storage.c, 2 times
- drivers/usb/gadget/function/storage_common.c, 3 times
- drivers/usb/misc/usblcd.c, 3 times
- drivers/usb/serial/xr_serial.c, 2 times
- drivers/vdpa/mlx5/net/mlx5_vnet.c, line 3345
- drivers/vdpa/vdpa.c, 14 times
- drivers/vdpa/vdpa_user/vduse_dev.c, line 1022
- drivers/vfio/container.c, line 229
- drivers/vfio/mdev/mdev_core.c, 3 times
- drivers/vfio/pci/vfio_pci_core.c, line 1790
- drivers/vfio/pci/vfio_pci_rdwr.c, 6 times
- drivers/video/fbdev/matrox/matroxfb_base.c, 8 times
- drivers/video/fbdev/matrox/matroxfb_crtc2.c, 2 times
- drivers/video/fbdev/omap2/omapfb/omapfb.h, line 193
- drivers/xen/xenbus/xenbus_xs.c, 2 times
- fs/9p/fid.c, 2 times
- fs/adfs/dir.c, 4 times
- fs/afs/callback.c, 2 times
- fs/afs/cell.c, 2 times
- fs/afs/dir.c, 2 times
- fs/afs/dir_silly.c, 3 times
- fs/afs/dynroot.c, line 214
- fs/afs/proc.c, line 212
- fs/afs/write.c, line 219
- fs/bcachefs/alloc_background.c, line 619
- fs/bcachefs/btree_gc.c, line 1981
- fs/bcachefs/btree_update_interior.c, 3 times
- fs/bcachefs/checksum.c, line 531
- fs/bcachefs/fs-ioctl.c, line 344
- fs/bcachefs/io_misc.c, 2 times
- fs/bcachefs/sysfs.c, line 526
- fs/bcachefs/util.c, line 295
- fs/btrfs/backref.c, 3 times
- fs/btrfs/block-group.c, 3 times
- fs/btrfs/ctree.c, 2 times
- fs/btrfs/dev-replace.c, 5 times
- fs/btrfs/disk-io.c, 2 times
- fs/btrfs/extent-tree.c, 4 times
- fs/btrfs/inode.c, 6 times
- fs/btrfs/ioctl.c, 4 times
- fs/btrfs/locking.c, line 190
- fs/btrfs/scrub.c, 2 times
- fs/btrfs/send.c, 10 times
- fs/btrfs/space-info.c, line 572
- fs/btrfs/sysfs.c, 2 times
- fs/btrfs/volumes.c, 3 times
- fs/btrfs/zoned.c, 5 times
- fs/cachefiles/cache.c, line 355
- fs/ceph/addr.c, 2 times
- fs/ceph/caps.c, 5 times
- fs/ceph/file.c, 2 times
- fs/ceph/inode.c, line 2744
- fs/ceph/io.c, 4 times
- fs/ceph/ioctl.c, 2 times
- fs/ceph/mds_client.c, 4 times
- fs/ceph/quota.c, 6 times
- fs/ceph/xattr.c, 4 times
- fs/configfs/file.c, 7 times
- fs/coredump.c, line 313
- fs/crypto/hooks.c, line 189
- fs/crypto/keyring.c, 3 times
- fs/crypto/keysetup.c, 2 times
- fs/crypto/keysetup_v1.c, 2 times
- fs/dcache.c, line 2934
- fs/dlm/dir.c, 4 times
- fs/dlm/lock.c, 2 times
- fs/dlm/lowcomms.c, 7 times
- fs/dlm/recover.c, 7 times
- fs/erofs/data.c, 4 times
- fs/erofs/super.c, line 277
- fs/exfat/inode.c, line 551
- fs/ext2/xattr.c, 2 times
- fs/ext4/extents.c, 4 times
- fs/ext4/ialloc.c, line 1211
- fs/ext4/inline.c, 17 times
- fs/ext4/inode.c, 6 times
- fs/ext4/ioctl.c, line 780
- fs/ext4/migrate.c, line 498
- fs/ext4/super.c, line 3842
- fs/ext4/xattr.c, 3 times
- fs/f2fs/checkpoint.c, line 1247
- fs/f2fs/f2fs.h, line 2168
- fs/f2fs/gc.c, line 987
- fs/f2fs/node.c, 2 times
- fs/f2fs/segment.c, 3 times
- fs/f2fs/sysfs.c, line 797
- fs/fat/inode.c, line 322
- fs/fs-writeback.c, 3 times
- fs/fuse/dax.c, 4 times
- fs/fuse/dev.c, 5 times
- fs/gfs2/bmap.c, line 931
- fs/gfs2/glops.c, line 587
- fs/gfs2/recovery.c, 2 times
- fs/gfs2/trans.c, 4 times
- fs/jffs2/wbuf.c, line 1013
- fs/jffs2/xattr.c, 4 times
- fs/jfs/jfs_incore.h, line 110
- fs/jfs/xattr.c, 2 times
- fs/kernfs/dir.c, 10 times
- fs/kernfs/file.c, line 950
- fs/kernfs/inode.c, 2 times
- fs/kernfs/mount.c, line 271
- fs/kernfs/symlink.c, line 121
- fs/lockd/clntproc.c, 4 times
- fs/namespace.c, 10 times
- fs/netfs/fscache_cache.c, 3 times
- fs/netfs/fscache_volume.c, line 511
- fs/netfs/locking.c, 4 times
- fs/nfs/io.c, 4 times
- fs/nfs/nfs4proc.c, 4 times
- fs/nilfs2/bmap.c, 4 times
- fs/nilfs2/cpfile.c, 5 times
- fs/nilfs2/inode.c, 4 times
- fs/nilfs2/ioctl.c, 9 times
- fs/nilfs2/segment.c, 4 times
- fs/nilfs2/sufile.c, 3 times
- fs/nilfs2/super.c, 3 times
- fs/nilfs2/sysfs.c, 19 times
- fs/nilfs2/the_nilfs.c, line 115
- fs/nilfs2/the_nilfs.h, line 305
- fs/ntfs3/attrib.c, line 905
- fs/ntfs3/bitmap.c, line 1504
- fs/ntfs3/frecord.c, 6 times
- fs/ntfs3/fsntfs.c, 3 times
- fs/ntfs3/index.c, 5 times
- fs/ntfs3/record.c, 3 times
- fs/ntfs3/run.c, line 1090
- fs/ocfs2/acl.c, 3 times
- fs/ocfs2/aops.c, 5 times
- fs/ocfs2/cluster/heartbeat.c, line 1476
- fs/ocfs2/dlm/dlmdomain.c, line 2278
- fs/ocfs2/dlmglue.c, 2 times
- fs/ocfs2/extent_map.c, 3 times
- fs/ocfs2/file.c, line 2227
- fs/ocfs2/journal.c, 2 times
- fs/ocfs2/quota_global.c, 2 times
- fs/ocfs2/quota_local.c, line 680
- fs/ocfs2/refcounttree.c, line 522
- fs/ocfs2/xattr.c, 4 times
- fs/orangefs/file.c, 2 times
- fs/orangefs/xattr.c, 2 times
- fs/overlayfs/params.c, line 686
- fs/overlayfs/super.c, line 233
- fs/proc/base.c, 3 times
- fs/proc/kcore.c, line 596
- fs/proc/nommu.c, line 94
- fs/quota/dquot.c, 2 times
- fs/quota/quota.c, 2 times
- fs/quota/quota_v1.c, line 185
- fs/quota/quota_v2.c, 4 times
- fs/readdir.c, line 55
- fs/reiserfs/super.c, line 112
- fs/reiserfs/xattr.c, line 754
- fs/smb/client/connect.c, line 2219
- fs/smb/client/dfs_cache.c, 9 times
- fs/smb/client/file.c, 7 times
- fs/smb/server/connection.c, 4 times
- fs/smb/server/mgmt/share_config.c, line 226
- fs/smb/server/mgmt/user_session.c, 2 times
- fs/smb/server/oplock.c, 3 times
- fs/smb/server/smb2pdu.c, 5 times
- fs/smb/server/smb_common.c, line 725
- fs/smb/server/transport_ipc.c, line 284
- fs/smb/server/vfs_cache.c, 2 times
- fs/super.c, line 66
- fs/sync.c, line 161
- fs/ubifs/auth.c, line 353
- fs/ubifs/budget.c, 2 times
- fs/ubifs/journal.c, 4 times
- fs/ubifs/xattr.c, 3 times
- fs/udf/inode.c, line 431
- fs/xfs/xfs_inode.c, 5 times
- fs/xfs/xfs_log.c, line 3892
- fs/xfs/xfs_log_cil.c, 2 times
- fs/xfs/xfs_super.c, line 617
- include/linux/fs.h, 3 times
- include/linux/mm.h, 2 times
- include/linux/mmap_lock.h, line 173
- include/linux/rmap.h, line 146
- include/linux/rwsem.h, 2 times
- ipc/msg.c, line 502
- ipc/sem.c, line 1337
- ipc/shm.c, 2 times
- ipc/util.c, line 877
- kernel/bpf/offload.c, 19 times
- kernel/events/core.c, 2 times
- kernel/events/uprobes.c, 3 times
- kernel/fork.c, line 1567
- kernel/kcmp.c, 3 times
- kernel/locking/locktorture.c, line 772
- kernel/locking/rwsem.c, line 1624
- kernel/notifier.c, 2 times
- kernel/pid.c, line 685
- kernel/rcu/rcutorture.c, line 3647
- kernel/rcu/refscale.c, 2 times
- kernel/sched/autogroup.c, line 278
- kernel/sys.c, 4 times
- kernel/taskstats.c, line 138
- kernel/time/posix-clock.c, 3 times
- kernel/trace/trace.c, line 933
- kernel/trace/trace_dynevent.c, line 37
- kernel/trace/trace_output.c, 2 times
- kernel/umh.c, 3 times
- kernel/utsname.c, line 72
- kernel/utsname_sysctl.c, line 51
- lib/digsig.c, line 179
- lib/locking-selftest.c, line 255
- lib/test_lockup.c, line 288
- lib/test_objpool.c, line 225
- lib/test_vmalloc.c, line 491
- mm/hugetlb.c, 2 times
- mm/rmap.c, 2 times
- mm/shmem_quota.c, line 158
- mm/userfaultfd.c, 7 times
- mm/util.c, line 1140
- 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, 16 times
- net/core/dev.c, 2 times
- net/core/net-sysfs.c, line 160
- net/core/net_namespace.c, 2 times
- net/dns_resolver/dns_query.c, line 164
- net/netfilter/nf_conntrack_core.c, line 2456
- net/netfilter/nf_flow_table_offload.c, line 863
- net/netlink/genetlink.c, 5 times
- net/nfc/nci/uart.c, line 412
- net/openvswitch/datapath.c, line 2688
- net/rds/ib_rdma.c, line 540
- net/rds/transport.c, 4 times
- net/sched/act_api.c, line 1910
- net/sched/cls_api.c, 8 times
- net/smc/af_smc.c, 2 times
- net/smc/smc_core.c, 4 times
- net/tls/tls_device.c, 7 times
- net/wireless/wext-core.c, line 357
- security/integrity/evm/evm_crypto.c, line 432
- security/keys/dh.c, line 52
- security/keys/encrypted-keys/encrypted.c, 4 times
- security/keys/key.c, 3 times
- security/keys/keyctl.c, line 811
- security/keys/persistent.c, line 93
- security/keys/process_keys.c, line 738
- security/keys/request_key.c, line 294
- security/keys/request_key_auth.c, 2 times
- security/selinux/include/xfrm.h, line 55
- sound/core/control.c, 2 times
- sound/core/seq/seq_clientmgr.c, 4 times
- sound/core/seq/seq_virmidi.c, line 101
- sound/soc/fsl/fsl_xcvr.c, 2 times
- sound/soc/intel/atom/sst-atom-controls.c, 2 times
- sound/soc/soc-card.c, line 59
- sound/usb/midi.c, 2 times
- tools/perf/util/cgroup.c, line 584
- tools/perf/util/env.c, 2 times
- tools/perf/util/header.c, 2 times
- tools/perf/util/machine.c, line 1728
- tools/perf/util/map.c, line 201
- tools/perf/util/maps.c, 11 times
- tools/perf/util/thread.c, 3 times
- tools/perf/util/threads.c, 4 times