Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\rcu.h Create Date:2022-07-28 10:17:37
Last Modify:2022-05-19 07:39:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static inline void rcu_init_levelspread(int *levelspread, const int *levelcnt)

Type:void

Parameter:

TypeParameterName
int *levelspread
const int *levelcnt
302  When i < RCU_NUM_LVLS cycle levelspread[i] = INT_MIN
304  If rcu_fanout_exact Then
305  levelspread[rcu_num_lvls - 1] = rcu_fanout_leaf
306  When i >= 0 cycle levelspread[i] = RCU_FANOUT
308  Else
312  cprv = nr_cpu_ids
313  When i >= 0 cycle
314  ccur = levelcnt[i]
315  levelspread[i] = ( cprv + ccur - 1) / ccur
316  cprv = ccur
Caller
NameDescribe
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.