函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\lockref.c Create Date:2022-07-27 07:16:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: 如果可能的话递减引用计数

函数原型:int lockref_put_return(struct lockref *lockref)

返回类型:int

参数:

类型参数名称
struct lockref *lockref
148  Note that the "cmpxchg()" reloads the "old" value for the* failure case.(count--;如果count小于等于0则返回 - 1;, 返回count;)
155  返回:负1
调用者
名称描述
fast_dputTry to do a lockless dput(), and return whether that was successful