| 函数逻辑报告 | 
| Source Code: lib\lockref.c | Create Date:2022-07-27 07:16:12 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称: 计数大于0则递减
函数原型:int lockref_put_or_lock(struct lockref *lockref)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct lockref * | lockref | 
| 166 | Note that the "cmpxchg()" reloads the "old" value for the* failure case.(count--;如果count小于等于1则退出;, 返回1;) | 
| 174 | 加自旋锁 | 
| 175 | 如果count小于等于1则返回:0 | 
| 177 | count自减 | 
| 178 | 自旋锁解锁 | 
| 179 | 返回:1 | 
| 名称 | 描述 | 
|---|---|
| fast_dput | Try to do a lockless dput(), and return whether that was successful | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |