函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\rcu_segcblist.c Create Date:2022-07-27 11:29:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Exchange the numeric length of the specified rcu_segcblist structure* with the specified value. This can cause the ->len field to disagree* with the actual number of callbacks on the structure. This exchange is

函数原型:static long rcu_segcblist_xchg_len(struct rcu_segcblist *rsclp, long v)

返回类型:long

参数:

类型参数名称
struct rcu_segcblist *rsclp
longv
142  ret等于len
144  smp_mb()
145  WRITE_ONCE(len, v)
146  smp_mb()
147  返回:ret
调用者
名称描述
rcu_segcblist_extract_countExtract only the counts from the specified rcu_segcblist structure,* and place them in the specified rcu_cblist structure. This function* supports both callback orphaning and invocation, hence the separation* of counts and callbacks