Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lockref_put_return - Decrement reference count if possible*@lockref: pointer to lockref structure* Decrement the reference count and return the new value.* If the lockref was dead or locked, return an error.

Proto:int lockref_put_return(struct lockref *lockref)

Type:int

Parameter:

TypeParameterName
struct lockref *lockref
148  Note that the "cmpxchg()" reloads the "old" value for the* failure case.(count--;If count <= 0 Then Return - 1;, Return count;)
155  Return -1