函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Initialize an rcu_segcblist structure.

函数原型:void rcu_segcblist_init(struct rcu_segcblist *rsclp)

返回类型:void

参数:

类型参数名称
struct rcu_segcblist *rsclp
158  BUILD_BUG_ON - break compile if a condition is true(RCU_NEXT_TAIL + 1 != ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(gp_seq))
159  BUILD_BUG_ON - break compile if a condition is true(ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(tails) != ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(gp_seq))
160  head = NULL
161 i小于RCU_CBLIST_NSEGS循环tails[i]等于head
163  Set the length of an rcu_segcblist structure.
164  len_lazy等于0
165  enabled等于1
调用者
名称描述
__call_rcuHelper function for call_rcu() and friends. The cpu argument will* normally be -1, indicating "currently running CPU". It may specify* a CPU only if that CPU is a no-CBs CPU. Currently, only rcu_barrier()* is expected to specify a CPU.
rcutree_prepare_cpuInvoked early in the CPU-online process, when pretty much all services* are available. The incoming CPU is not present.* Initializes a CPU's per-CPU RCU data. Note that only one online or* offline event can be happening at a given time
rcu_segcblist_mergeMerge the source rcu_segcblist structure into the destination* rcu_segcblist structure, then initialize the source. Any pending* callbacks from the source get to start over. It is best to* advance and accelerate both the destination and the source
init_srcu_struct_nodesInitialize SRCU combining tree. Note that statically allocated* srcu_struct structures might already have srcu_read_lock() and* srcu_read_unlock() running against them. So if the is_static parameter