函数逻辑报告 |
Source Code:include\linux\refcount.h |
Create Date:2022-07-27 06:40:40 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:_add_not_zero - add a value to a refcount unless it is 0*@i: the value to add to the refcount*@r: the refcount* Will saturate at REFCOUNT_SATURATED and WARN.* Provides no memory ordering, it is assumed the caller has guaranteed the
函数原型:static inline __must_check bool refcount_add_not_zero(int i, refcount_t *r)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
int | i | |
refcount_t * | r |
159 | 循环 |
164 | 如果此条件成立可能性小(为编译器优化)(old < 0 || old + i < 0)则refcount_warn_saturate(r, REFCOUNT_ADD_NOT_ZERO_OVF) |
167 | 返回:old |
名称 | 描述 |
---|---|
refcount_inc_not_zero | _inc_not_zero - increment a refcount unless it is 0*@r: the refcount to increment* Similar to atomic_inc_not_zero(), but will saturate at REFCOUNT_SATURATED* and WARN.* Provides no memory ordering, it is assumed the caller has guaranteed the |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |