Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\kref.h Create Date:2022-07-28 05:44:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kref_get_unless_zero - Increment refcount for object unless it is zero

Proto:static inline int __must_check kref_get_unless_zero(struct kref *kref)

Type:int

Parameter:

TypeParameterName
struct kref *kref
111  Return _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
Caller
NameDescribe
kobject_get_unless_zero
klist_iter_init_nodeklist_iter_init_node - Initialize a klist_iter structure.*@k: klist we're iterating.*@i: klist_iter we're filling.*@n: node to start with.* Similar to klist_iter_init(), but starts the action off with @n,* instead of with the list head.
zswap_pool_get
__zswap_pool_release
bsg_job_get