函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:初始化直接读拷贝更新的锁机制

函数原型:void __init rcu_init(void)

返回类型:void

参数:

3565  rcu_early_boot_tests()
3567  Forward declarations for tree_plugin.h
3568  Compute the rcu_node tree geometry from kernel parameters. This cannot* replace the definitions in tree.h because those are needed to size* the ->node array in the rcu_state structure.
3569  Helper function for rcu_init() that initializes the rcu_state structure.
3570  如果Dump rcu_node combining tree at boot to verify correct setup. Dump out the structure of the rcu_node combining tree associated* with the rcu_state structure.
3572  如果By default, use RCU_SOFTIRQ instead of rcuc kthreads. open_softirq(RCU_SOFTIRQ, rcu_core_si)
3580  pm_notifier(On non-huge systems, use expedited RCU grace periods to make suspend* and hibernation run faster., 0)
3581  遍历在线CPU(cpu)
3582  Invoked 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
3583  Mark the specified CPU as being online so that subsequent grace periods* (both expedited and normal) will wait on it. Note that this means that* incoming CPUs are not allowed to use RCU read-side critical sections* until this function is called
3584  Near the end of the CPU-online process. Pretty much all services* enabled, and the CPU is now very much alive.
3588  rcu_gp_wq等于alloc_workqueue("rcu_gp", WQ_MEM_RECLAIM, 0)
3589  WARN_ON(!rcu_gp_wq)
3590  rcu_par_gp_wq等于alloc_workqueue("rcu_par_gp", WQ_MEM_RECLAIM, 0)
3591  WARN_ON(!rcu_par_gp_wq)
3592  Queue work for srcu_struct structures with early boot callbacks.* The work won't actually execute until the workqueue initialization* phase that takes place after the scheduler starts.
调用者
名称描述
start_kernel启动内核