Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\atomic64.c Create Date:2022-07-28 07:17:34
Last Modify:2022-05-18 13:46:02 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:atomic64_cmpxchg

Proto:s64 atomic64_cmpxchg(atomic64_t *v, s64 o, s64 n)

Type:s64

Parameter:

TypeParameterName
atomic64_t *v
s64o
s64n
163  lock = lock_addr(v)
166  raw_spin_lock_irqsave(lock, flags)
167  val = counter
168  If val == o Then counter = n
170  raw_spin_unlock_irqrestore(lock, flags)
171  Return val
Caller
NameDescribe
blkcg_iolatency_done_bio