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:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:atomic64_cmpxchg

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

Type:s64

Parameter:

TypeParameterName
atomic64_t *v
s64old
s64new
1463  kasan_check_write(v, size of v )
1464  Return arch_atomic64_cmpxchg - cmpxchg atomic64 variable*@v: pointer to type atomic64_t*@o: expected value*@n: new value* Atomically sets @v to @n if it was equal to @o and returns* the old value.
Caller
NameDescribe
pvclock_clocksource_read
__update_gt_cputimeSet cputime to sum_cputime if sum_cputime > cputime. Use cmpxchg* to avoid race conditions with concurrent updates to cputime.
blkcg_scale_delayScale the accumulated delay based on how long it has been since we updated* the delay. We only call this when we are adding delay, in case it's been a* while since we added delay, and when we are checking to see if we need to
atomic64_try_cmpxchg