Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\lockref.c Create Date:2022-07-28 06:19:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lockref_get - Increments reference count unconditionally*@lockref: pointer to lockref structure* This operation is only valid if you already hold a reference* to the object, so you know the count cannot be zero.

Proto:void lockref_get(struct lockref *lockref)

Type:void

Parameter:

TypeParameterName
struct lockref *lockref
46  Note that the "cmpxchg()" reloads the "old" value for the* failure case.(count++;, Return ;)
52  spin_lock( & lock)
53  count++
54  spin_unlock( & lock)
Caller
NameDescribe
dgetget a reference to a dentry