Loading...
Defined in 2 files as a function:
- include/linux/refcount.h, line 265 (as a function)
- tools/include/linux/refcount.h, line 107 (as a function)
Documented in 1 files:
Referenced in 311 files:
- arch/s390/kernel/debug.c, line 382
- arch/s390/mm/extmem.c, line 426
- arch/s390/mm/gmap.c, 2 times
- arch/sparc/kernel/mdesc.c, line 264
- arch/x86/kernel/cpu/mce/amd.c, line 1355
- arch/x86/kernel/ioport.c, line 30
- block/bsg.c, line 274
- crypto/cryptd.c, line 146
- crypto/internal.h, line 101
- drivers/acpi/thermal.c, line 1017
- drivers/android/binder.c, line 5036
- drivers/base/core.c, 2 times
- drivers/base/power/runtime.c, 2 times
- drivers/block/nbd.c, 6 times
- drivers/block/virtio_blk.c, line 332
- drivers/char/mspec.c, line 93
- drivers/connector/connector.c, line 148
- drivers/crypto/caam/qi.c, line 120
- drivers/crypto/cavium/nitrox/nitrox_main.c, line 283
- drivers/dma/mediatek/mtk-cqdma.c, line 648
- drivers/dma/mediatek/mtk-hsdma.c, line 828
- drivers/firewire/core.h, line 199
- drivers/firmware/arm_scmi/driver.c, line 766
- drivers/firmware/arm_scmi/notify.c, 4 times
- drivers/gpu/drm/nouveau/nvkm/core/memory.c, line 66
- drivers/gpu/drm/omapdrm/omap_gem.c, line 819
- drivers/gpu/drm/vc4/vc4_gem.c, line 206
- drivers/gpu/drm/vc4/vc4_perfmon.c, line 21
- drivers/hwtracing/coresight/coresight-tmc-etr.c, line 1290
- drivers/infiniband/core/cm.c, 4 times
- drivers/infiniband/core/cma.c, 2 times
- drivers/infiniband/core/device.c, line 701
- drivers/infiniband/core/mad.c, 5 times
- drivers/infiniband/core/mad_rmpp.c, 2 times
- drivers/infiniband/hw/cxgb4/qp.c, line 895
- drivers/infiniband/hw/hns/hns_roce_db.c, line 49
- drivers/infiniband/hw/i40iw/i40iw_utils.c, line 608
- drivers/infiniband/hw/mlx5/odp.c, 4 times
- drivers/infiniband/hw/mlx5/qpc.c, line 25
- drivers/infiniband/hw/mlx5/srq_cmd.c, 2 times
- drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c, 4 times
- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c, 3 times
- drivers/iommu/ioasid.c, line 360
- drivers/iommu/sun50i-iommu.c, line 728
- drivers/md/dm-cache-metadata.c, line 800
- drivers/md/dm-ps-io-affinity.c, line 93
- drivers/md/dm-table.c, line 390
- drivers/md/dm-thin.c, line 4115
- drivers/md/dm-zoned-target.c, 2 times
- drivers/md/dm.c, line 836
- drivers/media/common/videobuf2/videobuf2-dma-contig.c, line 422
- drivers/media/common/videobuf2/videobuf2-dma-sg.c, line 533
- drivers/media/common/videobuf2/videobuf2-memops.c, line 96
- drivers/media/common/videobuf2/videobuf2-vmalloc.c, line 361
- drivers/media/pci/cx88/cx88-core.c, line 1046
- drivers/media/platform/vsp1/vsp1_dl.c, line 714
- drivers/misc/lkdtm/refcount.c, 6 times
- drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c, line 99
- drivers/net/ethernet/chelsio/cxgb4/cxgb4_mps.c, line 63
- drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_mqprio.c, line 176
- drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c, line 705
- drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c, line 216
- drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c, line 397
- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c, line 513
- drivers/net/ethernet/freescale/enetc/enetc_qos.c, line 1307
- drivers/net/ethernet/marvell/prestera/prestera_switchdev.c, line 365
- drivers/net/ethernet/mediatek/mtk_eth_soc.c, line 2318
- drivers/net/ethernet/mellanox/mlx4/cq.c, line 95
- drivers/net/ethernet/mellanox/mlx4/qp.c, line 58
- drivers/net/ethernet/mellanox/mlx4/srq.c, line 52
- drivers/net/ethernet/mellanox/mlx5/core/cmd.c, line 142
- drivers/net/ethernet/mellanox/mlx5/core/en/mod_hdr.c, line 61
- drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c, line 1604
- drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c, line 1087
- drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c, line 73
- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c, line 696
- drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c, line 113
- drivers/net/ethernet/mellanox/mlx5/core/fs_core.c, 5 times
- drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c, 7 times
- drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c, line 404
- drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c, line 915
- drivers/net/ethernet/mellanox/mlx5/core/steering/dr_rule.c, 2 times
- drivers/net/ethernet/mellanox/mlx5/core/steering/dr_table.c, 2 times
- drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c, 2 times
- drivers/net/ethernet/mellanox/mlxsw/spectrum.c, line 2684
- drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam.c, line 241
- drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c, 3 times
- drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c, 3 times
- drivers/net/ethernet/mellanox/mlxsw/spectrum_router_xm.c, 2 times
- drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c, 4 times
- drivers/net/ethernet/mscc/ocelot.c, line 1456
- drivers/net/hamradio/6pack.c, line 379
- drivers/net/hamradio/mkiss.c, line 672
- drivers/net/ipa/gsi.c, 2 times
- drivers/net/ipa/gsi_trans.c, 2 times
- drivers/net/phy/phy_device.c, line 1575
- drivers/net/ppp/ppp_async.c, line 139
- drivers/net/ppp/ppp_generic.c, 7 times
- drivers/net/ppp/ppp_synctty.c, line 141
- drivers/net/rionet.c, line 201
- drivers/net/wireless/intersil/hostap/hostap_hw.c, 3 times
- drivers/net/wireless/intersil/orinoco/orinoco_usb.c, 4 times
- drivers/pci/controller/pci-hyperv.c, 2 times
- drivers/pinctrl/sunxi/pinctrl-sunxi.c, line 774
- drivers/s390/char/vmur.c, line 128
- drivers/s390/net/ctcm_fsms.c, line 1784
- drivers/s390/net/ctcm_main.c, 6 times
- drivers/s390/net/lcs.c, line 759
- drivers/s390/net/netiucv.c, 2 times
- drivers/s390/net/qeth_core.h, line 644
- drivers/scsi/libfc/fc_fcp.c, line 178
- drivers/scsi/libiscsi.c, line 482
- drivers/staging/vme/devices/vme_user.c, line 428
- drivers/target/target_core_iblock.c, 2 times
- drivers/tty/serial/sb1250-duart.c, line 697
- drivers/usb/gadget/function/f_fs.c, 2 times
- drivers/usb/gadget/legacy/inode.c, 2 times
- drivers/xen/gntdev.c, 2 times
- fs/9p/fid.c, 4 times
- fs/afs/dir.c, line 977
- fs/afs/file.c, line 104
- fs/afs/internal.h, 3 times
- fs/afs/write.c, line 315
- fs/btrfs/backref.c, line 1234
- fs/btrfs/block-group.c, 6 times
- fs/btrfs/compression.c, 2 times
- fs/btrfs/delayed-inode.c, 9 times
- fs/btrfs/delayed-ref.c, line 404
- fs/btrfs/disk-io.c, line 4949
- fs/btrfs/extent-tree.c, 4 times
- fs/btrfs/extent_io.c, 5 times
- fs/btrfs/extent_map.c, 2 times
- fs/btrfs/inode.c, 2 times
- fs/btrfs/ordered-data.c, 8 times
- fs/btrfs/raid56.c, 3 times
- fs/btrfs/scrub.c, 5 times
- fs/btrfs/transaction.c, 8 times
- fs/btrfs/tree-log.c, line 4539
- fs/btrfs/volumes.c, line 5753
- fs/ceph/caps.c, 2 times
- fs/ceph/mds_client.c, line 773
- fs/crypto/keysetup.c, line 527
- fs/crypto/keysetup_v1.c, line 207
- fs/f2fs/data.c, line 2212
- fs/fs_context.c, line 339
- fs/fuse/dax.c, 2 times
- fs/fuse/dev.c, line 69
- fs/fuse/file.c, line 93
- fs/fuse/inode.c, line 741
- fs/io-wq.c, line 922
- fs/io_uring.c, line 7317
- fs/lockd/clntproc.c, 3 times
- fs/lockd/host.c, 3 times
- fs/lockd/mon.c, 2 times
- fs/lockd/svclock.c, line 338
- fs/mount.h, line 122
- fs/netfs/read_helper.c, 2 times
- fs/nfs/cache_lib.c, line 90
- fs/nfs/client.c, 3 times
- fs/nfs/delegation.c, line 52
- fs/nfs/filelayout/filelayout.c, 3 times
- fs/nfs/flexfilelayout/flexfilelayout.c, 3 times
- fs/nfs/nfs4client.c, 5 times
- fs/nfs/nfs4proc.c, 5 times
- fs/nfs/nfs4state.c, 5 times
- fs/nfs/pagelist.c, line 450
- fs/nfs/pnfs.c, 2 times
- fs/nfs/pnfs.h, line 447
- fs/nfs/pnfs_nfs.c, line 796
- fs/nfsd/filecache.c, line 1022
- fs/nfsd/nfs4layouts.c, 2 times
- fs/nfsd/nfs4proc.c, 2 times
- fs/nfsd/nfs4state.c, 11 times
- fs/nfsd/state.h, line 685
- fs/nilfs2/the_nilfs.c, 2 times
- fs/nilfs2/the_nilfs.h, line 294
- fs/notify/group.c, line 101
- fs/notify/mark.c, line 97
- fs/proc/internal.h, line 197
- fs/userfaultfd.c, line 154
- include/linux/atmdev.h, line 273
- include/linux/blk-cgroup.h, line 415
- include/linux/cgroup.h, line 891
- include/linux/inetdevice.h, 2 times
- include/linux/ipc_namespace.h, line 130
- include/linux/key.h, line 302
- include/linux/kref.h, line 45
- include/linux/mlx5/cq.h, line 177
- include/linux/mroute_base.h, line 165
- include/linux/netdevice.h, line 4157
- include/linux/pid.h, line 85
- include/linux/pid_namespace.h, line 44
- include/linux/posix_acl.h, line 47
- include/linux/sched/task.h, line 104
- include/linux/sched/user.h, line 56
- include/linux/skbuff.h, 3 times
- include/linux/time_namespace.h, line 38
- include/linux/user_namespace.h, line 118
- include/linux/utsname.h, line 34
- include/net/addrconf.h, 3 times
- include/net/ax25.h, 3 times
- include/net/bluetooth/rfcomm.h, line 251
- include/net/fib_rules.h, line 128
- include/net/ip.h, line 484
- include/net/ip6_fib.h, line 326
- include/net/ip_fib.h, line 526
- include/net/ip_vs.h, line 1443
- include/net/ipx.h, 2 times
- include/net/llc.h, line 117
- include/net/neighbour.h, 3 times
- include/net/net_namespace.h, line 239
- include/net/netrom.h, 2 times
- include/net/sch_generic.h, line 125
- include/net/sctp/auth.h, line 67
- include/net/sock.h, line 698
- include/net/x25.h, 2 times
- include/net/xfrm.h, 2 times
- ipc/sem.c, line 2295
- kernel/audit_tree.c, line 113
- kernel/audit_watch.c, line 102
- kernel/bpf/btf.c, 2 times
- kernel/bpf/dispatcher.c, line 52
- kernel/bpf/trampoline.c, line 71
- kernel/cgroup/cgroup-internal.h, line 202
- kernel/events/core.c, line 1239
- kernel/events/uprobes.c, line 597
- kernel/fork.c, 2 times
- kernel/kcov.c, line 401
- kernel/sched/core.c, line 2259
- kernel/seccomp.c, 2 times
- kernel/trace/trace.c, line 7951
- kernel/user.c, line 127
- net/atm/lec.c, line 108
- net/atm/mpoa_caches.c, 9 times
- net/bridge/br_vlan.c, 2 times
- net/ceph/messenger.c, line 1865
- net/ceph/snapshot.c, line 49
- net/core/datagram.c, line 197
- net/core/dev.c, line 2336
- net/core/devlink.c, 2 times
- net/core/flow_offload.c, line 357
- net/core/net-sysfs.c, line 1785
- net/core/netpoll.c, line 641
- net/core/page_pool.c, line 587
- net/core/pktgen.c, line 3370
- net/core/rtnetlink.c, line 715
- net/core/skbuff.c, line 1703
- net/dccp/ipv6.c, line 374
- net/decnet/dn_fib.c, 2 times
- net/dsa/tag_8021q.c, line 354
- net/ipv4/cipso_ipv4.c, 2 times
- net/ipv4/fib_trie.c, line 1609
- net/ipv4/igmp.c, line 220
- net/ipv4/inet_fragment.c, line 200
- net/ipv4/ip_fragment.c, line 252
- net/ipv4/netfilter/ipt_CLUSTERIP.c, line 85
- net/ipv6/anycast.c, line 242
- net/ipv6/calipso.c, 2 times
- net/ipv6/mcast.c, 3 times
- net/ipv6/syncookies.c, line 192
- net/ipv6/tcp_ipv6.c, line 826
- net/ipv6/xfrm6_tunnel.c, line 171
- net/l2tp/l2tp_core.c, 2 times
- net/lapb/lapb_iface.c, line 52
- net/netfilter/ipvs/ip_vs_conn.c, 2 times
- net/netfilter/nf_conntrack_expect.c, line 206
- net/netfilter/nfnetlink_log.c, line 121
- net/netfilter/xt_hashlimit.c, line 415
- net/netlink/af_netlink.c, 3 times
- net/rds/ib.c, 2 times
- net/rds/ib_rdma.c, 2 times
- net/rds/message.c, line 54
- net/rds/recv.c, line 73
- net/sched/act_api.c, 2 times
- net/sched/cls_api.c, 2 times
- net/sched/cls_flower.c, 2 times
- net/sched/cls_tcindex.c, line 67
- net/sched/sch_taprio.c, line 1188
- net/sctp/associola.c, line 857
- net/sctp/auth.c, line 112
- net/sctp/chunk.c, line 121
- net/sctp/endpointola.c, line 227
- net/sctp/sm_make_chunk.c, line 1494
- net/sctp/socket.c, line 8867
- net/smc/smc_ism.c, line 108
- net/smc/smc_pnet.c, line 747
- net/sunrpc/auth.c, line 558
- net/sunrpc/auth_gss/auth_gss.c, 7 times
- net/sunrpc/auth_null.c, line 24
- net/sunrpc/auth_unix.c, line 31
- net/unix/af_unix.c, line 1381
- net/xdp/xdp_umem.c, line 78
- net/xdp/xsk_buff_pool.c, 2 times
- security/keys/key.c, 2 times
- security/landlock/object.h, line 88
- security/landlock/ruleset.c, line 246
- security/landlock/ruleset.h, line 162
- sound/core/pcm_native.c, 2 times
- sound/virtio/virtio_ctl_msg.c, line 35
- tools/lib/perf/cpumap.c, line 38
- tools/lib/perf/mmap.c, line 65
- tools/lib/perf/threadmap.c, line 73
- tools/perf/util/block-info.c, line 49
- tools/perf/util/cgroup.c, 2 times
- tools/perf/util/dso.c, line 1332
- tools/perf/util/map.h, line 119
- tools/perf/util/maps.h, line 58
- tools/perf/util/namespaces.c, line 198
- tools/perf/util/symbol.c, line 2603
- tools/perf/util/thread.c, line 121
- virt/kvm/kvm_main.c, line 1049