Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\tree.c Create Date:2022-07-28 10:27:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Helper function for rcu_init() that initializes the rcu_state structure.

Proto:static void __init rcu_init_one(void)

Type:void

Parameter:Nothing

3379  buf[] = RCU_NODE_NAME_INIT
3380  fqs[] = RCU_FQS_NAME_INIT
3385  cpustride = 1
3390  BUILD_BUG_ON - break compile if a condition is true(RCU_NUM_LVLS > ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(buf))
3393  If rcu_num_lvls <= 0 || rcu_num_lvls > RCU_NUM_LVLS Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
3398  When i < rcu_num_lvls cycle level[i] = level[i - 1] + Number of rcu_nodes at specified level. [i - 1]
3401  Compute the per-level fanout, either using the exact fanout specified* or balancing the tree, depending on the rcu_fanout_exact boot parameter.
3405  When i >= 0 cycle
3406  cpustride *= levelspread[i]
3407  rnp = level[i]
3419  qsmaskinit = 0
3424  If i == 0 Then
3428  Else
3437  init_waitqueue_head( & exp_wq[0])
3438  init_waitqueue_head( & exp_wq[1])
3439  init_waitqueue_head( & exp_wq[2])
3440  init_waitqueue_head( & exp_wq[3])
3445  init_swait_queue_head( & Where GP task waits. )
3446  init_swait_queue_head( & Wait for check-ins. )
3447  rnp = Returns a pointer to the first leaf rcu_node structure. ()
3448  for_each_possible_cpu(i)
3449  When i > highest-numbered CPU or group here. cycle
3450  rnp++
3451  ({
3451  ({
3451  Do
3451  const void * __vpp_verify = NULL
3451  When 0 cycle
3451  rcu_data
3451  })
3451  })->mynode = rnp
3452  Do boot-time initialization of a CPU's per-CPU RCU data.
Caller
NameDescribe
rcu_init