Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lockref_get_not_dead - Increments count unless the ref is dead*@lockref: pointer to lockref structure* Return: 1 if count updated successfully or 0 if lockref was dead

Proto:int lockref_get_not_dead(struct lockref *lockref)

Type:int

Parameter:

TypeParameterName
struct lockref *lockref
203  Note that the "cmpxchg()" reloads the "old" value for the* failure case.(count++;If count < 0 Then Return 0;, Return 1;)
211  spin_lock( & lock)
212  retval = 0
213  If count >= 0 Then
214  count++
215  retval = 1
217  spin_unlock( & lock)
218  Return retval
Caller
NameDescribe
unlazy_childlazy_child - try to switch to ref-walk mode
d_alloc_parallel
__ns_get_path