函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\rcu.h Create Date:2022-07-27 11:17:57
Last Modify:2022-05-19 07:39:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Compute the per-level fanout, either using the exact fanout specified* or balancing the tree, depending on the rcu_fanout_exact boot parameter.

函数原型:static inline void rcu_init_levelspread(int *levelspread, const int *levelcnt)

返回类型:void

参数:

类型参数名称
int *levelspread
const int *levelcnt
302 i小于RCU_NUM_LVLS循环levelspread[i]等于INT_MIN
304  如果rcu_fanout_exact
305  levelspread[rcu_num_lvls - 1]等于rcu_fanout_leaf
306 i大于等于0循环levelspread[i]等于RCU_FANOUT
308  否则
312  cprv等于nr_cpu_ids
313 i大于等于0循环
314  ccur等于levelcnt[i]
315  levelspread[i]等于cprvccur减1的差除ccur
316  cprv等于ccur
调用者
名称描述
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
rcu_init_oneHelper function for rcu_init() that initializes the rcu_state structure.