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_xchg

Proto:s64 atomic64_xchg(atomic64_t *v, s64 new)

Type:s64

Parameter:

TypeParameterName
atomic64_t *v
s64new
178  lock = lock_addr(v)
181  raw_spin_lock_irqsave(lock, flags)
182  val = counter
183  counter = new
184  raw_spin_unlock_irqrestore(lock, flags)
185  Return val