函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\atomic-fallback.h Create Date:2022-07-27 06:38:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:atomic64_try_cmpxchg

函数原型:static inline bool atomic64_try_cmpxchg(atomic64_t *v, s64 *old, s64 new)

返回类型:bool

参数:

类型参数名称
atomic64_t *v
s64 *old
s64new
2027  o等于old
2028  r等于atomic64_cmpxchg(v, o, new)
2029  如果此条件成立可能性小(为编译器优化)(r != o)则old等于r
2031  返回:此条件成立可能性大(为编译器优化)(r == o)
调用者
名称描述
atomic64_fetch_add_unlessatomic64_fetch_add_unless - add unless the number is already a given value*@v: pointer of type atomic64_t*@a: the amount to add to v
atomic64_inc_unless_negative
atomic64_dec_unless_positive