函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\refcount.h Create Date:2022-07-27 06:40:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:_inc_not_zero - increment a refcount unless it is 0*@r: the refcount to increment* Similar to atomic_inc_not_zero(), but will saturate at REFCOUNT_SATURATED* and WARN.* Provides no memory ordering, it is assumed the caller has guaranteed the

函数原型:static inline __must_check bool refcount_inc_not_zero(refcount_t *r)

返回类型:bool

参数:

类型参数名称
refcount_t *r
211  返回:_add_not_zero - add a value to a refcount unless it is 0*@i: the value to add to the refcount*@r: the refcount* Will saturate at REFCOUNT_SATURATED and WARN.* Provides no memory ordering, it is assumed the caller has guaranteed the
调用者
名称描述
get_pi_state
btf_get_fd_by_id
perf_event_ctx_lock_nestedBecause of perf_event::ctx migration in sys_perf_event_open::move_group and* perf_pmu_migrate_context() we need some magic.* Those places that change perf_event::ctx will hold both* perf_event_ctx::mutex of the 'old' and 'new' ctx value.
perf_lock_task_contextGet the perf_event_context for a task and lock it.* This has to cope with with the fact that until it is locked,* the context could get moved to another task.
ring_buffer_get
__perf_event_ctx_lock_doubleVariation on perf_event_ctx_lock_nested(), except we take two context* mutexes.
perf_aux_output_beginThis is called before hardware starts writing to the AUX area to* obtain an output handle and make sure there's room in the buffer
mem_cgroup_id_get_online
ipc_rcu_getref
blk_mq_check_expired
key_lookupFind a key by its serial number.
find_keyring_by_nameFind a keyring with the specified name
fsnotify_get_mark_safeGet mark reference when we found the mark via lockless traversal of object* list. Mark can be already removed from the list by now and on its way to be* destroyed once SRCU period ends.* Also pin the group so it doesn't disappear under us.
io_link_timeout_fn
io_uring_cancel_files
io_worker_get
add_existing_master_key
get_cached_acl
kref_get_unless_zerokref_get_unless_zero - Increment refcount for object unless it is zero
qdisc_refcount_inc_nzIntended to be used by unlocked users, when concurrent qdisc release is* possible.
reqsk_alloc
__ipv6_neigh_lookup
txopt_get
__ipv4_neigh_lookup
inet_lookup
ib_device_try_get_device_try_get: Hold a registration lock* device: The device to lock* A device under an active registration lock cannot become unregistered. It* is only possible to obtain a registration lock on a device that is fully
get_rpccred
sk_psock_get_checked
sk_psock_get
fib6_info_hold_safe