Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:atomic_try_cmpxchg

Proto:static inline bool atomic_try_cmpxchg(atomic_t *v, int *old, int new)

Type:bool

Parameter:

TypeParameterName
atomic_t *v
int *old
intnew
693  kasan_check_write(v, size of v )
694  kasan_check_write(old, size of old )
695  Return arch_atomic_try_cmpxchg(v, old, new)
Caller
NameDescribe
atomic_fetch_add_unlessatomic_fetch_add_unless - add unless the number is already a given value*@v: pointer of type atomic_t*@a: the amount to add to v...*@u: ...unless v is equal to u.* Atomically adds @a to @v, so long as @v was not already @u.* Returns original value of @v
atomic_inc_unless_negative
atomic_dec_unless_positive
atomic_dec_if_positive
atomic_long_try_cmpxchg