Loading...
Defined in 2 files as a prototype:
Defined in 3 files as a function:
- kernel/locking/rwsem.c, line 1523 (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 399 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 206
- arch/sparc/kernel/sys_sparc_64.c, line 532
- arch/x86/kernel/ldt.c, line 508
- arch/x86/kernel/umip.c, line 258
- arch/x86/kvm/svm/sev.c, line 239
- arch/x86/kvm/x86.c, line 10530
- 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 244
- crypto/asymmetric_keys/asymmetric_type.c, line 411
- crypto/crypto_user_base.c, 3 times
- crypto/proc.c, line 23
- drivers/accel/habanalabs/common/debugfs.c, line 1331
- drivers/accel/ivpu/ivpu_job.c, line 518
- drivers/accessibility/speakup/spk_ttyio.c, line 138
- drivers/acpi/cppc_acpi.c, line 1617
- 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 163
- 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 2205
- drivers/crypto/intel/qat/qat_common/adf_cfg.c, line 348
- drivers/crypto/intel/qat/qat_common/adf_sysfs.c, line 226
- 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 1185
- drivers/cxl/core/memdev.c, line 719
- drivers/cxl/core/port.c, line 553
- drivers/cxl/core/region.c, 5 times
- drivers/firewire/core-cdev.c, line 454
- drivers/firewire/core-device.c, 7 times
- drivers/gnss/core.c, line 162
- drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c, 5 times
- drivers/gpu/drm/amd/amdkfd/kfd_topology.c, 8 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 151
- 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 981
- drivers/gpu/drm/radeon/radeon_gem.c, 4 times
- drivers/gpu/drm/radeon/radeon_object.c, line 204
- drivers/gpu/drm/ttm/ttm_pool.c, line 321
- drivers/gpu/drm/vmwgfx/vmwgfx_irq.c, line 193
- drivers/gpu/drm/xe/tests/xe_bo.c, line 275
- drivers/gpu/drm/xe/xe_gt_pagefault.c, line 523
- drivers/gpu/drm/xe/xe_pt.c, line 1041
- drivers/gpu/drm/xe/xe_vm.c, 6 times
- drivers/hid/hidraw.c, 2 times
- drivers/i2c/i2c-core-base.c, line 1377
- drivers/i3c/master.c, line 80
- drivers/infiniband/core/device.c, 25 times
- drivers/infiniband/core/netlink.c, 2 times
- drivers/infiniband/core/nldev.c, 2 times
- drivers/infiniband/core/rdma_core.c, line 193
- drivers/infiniband/core/roce_gid_mgmt.c, line 485
- drivers/infiniband/core/verbs.c, line 1158
- drivers/infiniband/ulp/ipoib/ipoib_main.c, 3 times
- drivers/input/misc/yealink.c, 2 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, line 78
- drivers/iommu/iommufd/selftest.c, line 77
- 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 2587
- 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 380
- drivers/media/dvb-core/dvbdev.c, line 91
- 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 664
- 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 777
- 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/core.c, 7 times
- drivers/nvme/host/fabrics.c, line 1280
- drivers/nvme/host/ioctl.c, line 787
- drivers/nvme/host/multipath.c, 3 times
- drivers/nvme/target/admin-cmd.c, line 291
- drivers/nvme/target/auth.c, line 134
- drivers/nvme/target/core.c, 3 times
- drivers/nvme/target/discovery.c, line 199
- drivers/pci/bus.c, line 399
- drivers/pci/hotplug/cpci_hotplug_core.c, 3 times
- drivers/pci/hotplug/pciehp_hpc.c, line 1011
- drivers/pci/pci-acpi.c, line 1313
- drivers/pci/pci.c, line 5181
- 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, 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 604
- drivers/platform/x86/wmi.c, line 1236
- drivers/rapidio/rio_cm.c, 6 times
- drivers/s390/block/dcssblk.c, 3 times
- drivers/scsi/cxlflash/main.c, line 3499
- 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 565
- drivers/ufs/core/ufshcd.c, 3 times
- drivers/usb/core/file.c, line 38
- drivers/usb/core/hcd-pci.c, 2 times
- drivers/usb/core/hub.c, line 2984
- 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 3301
- drivers/vdpa/vdpa.c, 10 times
- drivers/vdpa/vdpa_user/vduse_dev.c, line 977
- drivers/vfio/container.c, line 191
- drivers/vfio/pci/vfio_pci_core.c, line 1754
- 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 214
- fs/bcachefs/alloc_background.c, line 569
- fs/bcachefs/btree_gc.c, line 1921
- fs/bcachefs/btree_update_interior.c, line 1109
- fs/bcachefs/checksum.c, line 517
- fs/bcachefs/fs-ioctl.c, line 342
- fs/bcachefs/io_misc.c, 2 times
- fs/bcachefs/sysfs.c, line 527
- 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 3027
- fs/btrfs/extent-tree.c, 4 times
- fs/btrfs/inode.c, 4 times
- fs/btrfs/ioctl.c, 4 times
- fs/btrfs/scrub.c, line 2937
- fs/btrfs/send.c, 8 times
- fs/btrfs/space-info.c, line 552
- fs/btrfs/sysfs.c, 2 times
- fs/btrfs/volumes.c, 2 times
- fs/btrfs/zoned.c, 2 times
- fs/cachefiles/cache.c, line 353
- fs/ceph/addr.c, 2 times
- fs/ceph/caps.c, 3 times
- fs/ceph/file.c, 2 times
- fs/ceph/inode.c, line 2505
- 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 310
- fs/crypto/hooks.c, line 189
- fs/crypto/keyring.c, 3 times
- fs/crypto/keysetup.c, line 487
- fs/crypto/keysetup_v1.c, line 112
- fs/dlm/dir.c, 3 times
- fs/dlm/lock.c, 2 times
- fs/dlm/lowcomms.c, 4 times
- fs/dlm/recover.c, 3 times
- fs/erofs/data.c, 2 times
- fs/erofs/super.c, line 250
- fs/exfat/inode.c, line 549
- fs/ext2/xattr.c, 2 times
- fs/ext4/extents.c, 2 times
- fs/ext4/ialloc.c, line 1190
- fs/ext4/inline.c, 10 times
- fs/ext4/inode.c, 4 times
- fs/ext4/ioctl.c, line 778
- fs/ext4/migrate.c, line 496
- fs/ext4/xattr.c, 3 times
- fs/f2fs/f2fs.h, line 2122
- fs/f2fs/gc.c, line 985
- fs/f2fs/node.c, 2 times
- fs/f2fs/segment.c, 3 times
- fs/fat/inode.c, line 320
- fs/fs-writeback.c, line 480
- fs/fuse/control.c, line 177
- 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/xattr.c, 2 times
- fs/kernfs/dir.c, 7 times
- fs/kernfs/file.c, line 904
- 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, 8 times
- fs/netfs/fscache_cache.c, 2 times
- fs/netfs/fscache_volume.c, line 499
- fs/nfs/io.c, 2 times
- fs/nfs/nfs4proc.c, 2 times
- fs/nilfs2/bmap.c, 4 times
- fs/nilfs2/cpfile.c, 4 times
- fs/nilfs2/inode.c, 3 times
- fs/nilfs2/ioctl.c, 8 times
- fs/nilfs2/segment.c, line 223
- fs/nilfs2/sufile.c, 3 times
- fs/nilfs2/super.c, 3 times
- fs/nilfs2/sysfs.c, 19 times
- fs/nilfs2/the_nilfs.c, line 111
- fs/nilfs2/the_nilfs.h, line 303
- fs/ntfs/aops.c, 4 times
- fs/ntfs/attrib.c, 3 times
- fs/ntfs/compress.c, line 602
- fs/ntfs/file.c, 2 times
- fs/ntfs/mft.c, 2 times
- fs/ntfs/super.c, 3 times
- fs/ntfs3/attrib.c, line 902
- fs/ntfs3/frecord.c, 6 times
- fs/ntfs3/fsntfs.c, line 785
- fs/ntfs3/index.c, 5 times
- fs/ntfs3/record.c, 3 times
- 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 2274
- fs/ocfs2/dlmglue.c, line 2876
- fs/ocfs2/extent_map.c, 3 times
- fs/ocfs2/file.c, line 2196
- fs/ocfs2/journal.c, line 350
- fs/ocfs2/quota_global.c, line 316
- fs/ocfs2/quota_local.c, line 600
- fs/ocfs2/refcounttree.c, line 429
- fs/ocfs2/xattr.c, 4 times
- fs/orangefs/file.c, 2 times
- fs/orangefs/xattr.c, 2 times
- fs/overlayfs/params.c, line 676
- fs/overlayfs/super.c, line 239
- fs/proc/kcore.c, line 326
- fs/proc/nommu.c, line 84
- fs/quota/quota.c, line 1000
- fs/quota/quota_v1.c, line 165
- fs/quota/quota_v2.c, 4 times
- fs/reiserfs/reiserfs.h, line 833
- fs/reiserfs/xattr.c, line 685
- fs/smb/client/connect.c, line 2150
- fs/smb/client/dfs_cache.c, 6 times
- fs/smb/client/file.c, 5 times
- fs/smb/server/connection.c, 4 times
- fs/smb/server/mgmt/share_config.c, line 213
- fs/smb/server/mgmt/user_session.c, 2 times
- fs/smb/server/smb2pdu.c, line 6990
- fs/smb/server/transport_ipc.c, line 256
- fs/super.c, line 58
- fs/sync.c, line 159
- fs/ubifs/auth.c, line 286
- fs/ubifs/budget.c, 2 times
- fs/ubifs/journal.c, 2 times
- fs/ubifs/xattr.c, 2 times
- fs/udf/inode.c, line 423
- fs/xfs/xfs_log.c, line 3882
- fs/xfs/xfs_log_cil.c, line 1577
- include/linux/fs.h, 3 times
- include/linux/mmap_lock.h, line 146
- 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/offload.c, 17 times
- kernel/events/uprobes.c, 3 times
- kernel/locking/locktorture.c, line 754
- kernel/locking/rwsem.c, line 1530
- kernel/notifier.c, 2 times
- kernel/rcu/rcutorture.c, line 3641
- kernel/rcu/refscale.c, 2 times
- kernel/sched/autogroup.c, line 276
- kernel/sys.c, 4 times
- kernel/taskstats.c, line 121
- kernel/time/posix-clock.c, 2 times
- kernel/trace/trace.c, line 905
- 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/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 128
- mm/util.c, line 1116
- 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, 10 times
- net/core/dev.c, 2 times
- net/core/net_namespace.c, line 580
- net/dns_resolver/dns_query.c, line 136
- net/netfilter/nf_conntrack_core.c, line 2448
- net/netfilter/nf_flow_table_offload.c, line 854
- net/netlink/genetlink.c, 4 times
- net/nfc/nci/uart.c, line 410
- net/openvswitch/datapath.c, line 2685
- net/rds/ib_rdma.c, line 532
- net/rds/transport.c, 4 times
- net/sched/act_api.c, line 1874
- net/sched/cls_api.c, 4 times
- net/smc/af_smc.c, line 557
- net/smc/smc_core.c, 3 times
- net/tls/tls_device.c, 5 times
- net/wireless/wext-core.c, line 350
- security/integrity/evm/evm_crypto.c, line 425
- 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 705
- 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/control.c, 15 times
- sound/core/control_compat.c, 2 times
- sound/core/control_led.c, line 625
- sound/core/oss/mixer_oss.c, 8 times
- sound/core/pcm_native.c, line 1415
- sound/core/seq/seq_clientmgr.c, 2 times
- sound/core/seq/seq_ports.c, line 672
- sound/core/seq/seq_virmidi.c, line 76
- sound/soc/fsl/fsl_xcvr.c, 2 times
- sound/soc/intel/atom/sst-atom-controls.c, line 1437
- sound/soc/soc-card.c, line 57
- sound/usb/midi.c, line 1083
- tools/include/linux/rwsem.h, line 41
- tools/perf/util/cgroup.c, line 582
- tools/perf/util/env.c, 2 times
- tools/perf/util/header.c, 2 times
- tools/perf/util/machine.c, 3 times
- tools/perf/util/map.c, line 198
- tools/perf/util/maps.c, 7 times
- tools/perf/util/thread.c, 3 times