函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\atomic.h Create Date:2022-07-27 06:38:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:arch_atomic_xchg

函数原型:static inline int arch_atomic_xchg(atomic_t *v, int new)

返回类型:int

参数:

类型参数名称
atomic_t *v
intnew
205  返回: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.( & 计数器, new)
调用者
名称描述
atomic_xchg