函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\atomic64.c Create Date:2022-07-27 08:16:06
Last Modify:2022-05-18 13:46:02 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:atomic64_xchg

函数原型:s64 atomic64_xchg(atomic64_t *v, s64 new)

返回类型:s64

参数:

类型参数名称
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  返回:val