Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:arch_atomic_xchg

Proto:static inline int arch_atomic_xchg(atomic_t *v, int new)

Type:int

Parameter:

TypeParameterName
atomic_t *v
intnew
205  Return Note: no "lock" prefix even on SMP: xchg always implies lock anyway.* Since this is generally used to protect other memory information, we* use "asm volatile" and "memory" clobbers to prevent gcc from moving* information around.( & counter, new)
Caller
NameDescribe
atomic_xchg