Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\atomic-fallback.h Create Date:2022-07-28 05:34:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:atomic64_try_cmpxchg

Proto:static inline bool atomic64_try_cmpxchg(atomic64_t *v, s64 *old, s64 new)

Type:bool

Parameter:

TypeParameterName
atomic64_t *v
s64 *old
s64new
2027  o = old
2028  r = atomic64_cmpxchg(v, o, new)
2029  If Value for the false possibility is greater at compile time(r != o) Then old = r
2031  Return Value is more likely to compile time(r == o)
Caller
NameDescribe
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