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_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

Proto:static inline s64 atomic64_fetch_add_unless(atomic64_t *v, s64 a, s64 u)

Type:s64

Parameter:

TypeParameterName
atomic64_t *v
s64a
s64u
2196  c = atomic64_read(v)
2198  Do
2199  If Value for the false possibility is greater at compile time(c == u) Then Break
2201  When Not atomic64_try_cmpxchg(v, & c, c + a) cycle
2203  Return c
Caller
NameDescribe
__bpf_map_inc_not_zeromap_idr_lock should have been held
atomic64_add_unlessatomic64_add_unless - add unless the number is already a given value*@v: pointer of type atomic64_t*@a: the amount to add to v...*@u: ...unless v is equal to u.* Atomically adds @a to @v, if @v was not already @u.* Returns true if the addition was done.