函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:int rcutree_prepare_cpu(unsigned int cpu)

返回类型:int

参数:

类型参数名称
unsigned intcpu
3053  rdp等于per_cpu_ptr( & rcu_data, cpu)
3054  rnp等于Return the root node of the rcu_state structure.
3057  raw_spin_lock_irqsave_rcu_node(rnp, flags)
3058  different grace periods. 等于0
3059  qlen at last check for QS forcing 等于Number of calls to
3060  Upper limit on a processed batch 等于blimit
3061  如果Is the specified rcu_segcblist structure empty?* But careful! The fact that the ->head field is NULL does not* necessarily imply that there are no callbacks associated with* this structure. When callbacks are being invoked, they are* removed as a group且非Is the specified rcu_segcblist offloaded? rcu_segcblist_init( & Segmented callback list, with )
3064  Track process nesting level. 等于1
3065  Reset the current CPU's ->dynticks counter to indicate that the* newly onlined CPU is no longer in an extended quiescent state
3066  raw_spin_unlock_rcu_node(rnp)
3073  rnp等于This CPU's leaf of hierarchy
3074  Wrappers for the rcu_node::lock acquire and release(rnp)
3075  CPU online at least once. = true
3076  Track rsp->rcu_gp_seq counter. 等于Track rsp->rcu_gp_seq.
3077  Track furthest future GP request. 等于Track rsp->rcu_gp_seq.
3078  norm = true
3079  Core waits for quiesc state. = false
3080  Is ->rcu_iw pending? = false
3081  ->gp_seq associated with ->rcu_iw. 等于Track rsp->rcu_gp_seq. 减1
3082  trace_rcu_grace_period(Name of structure. , Track rsp->rcu_gp_seq counter. , Strings used in tracepoints need to be exported via the* tracing system such that tools like perf and trace-cmd can* translate the string address pointers to actual text.("cpuonl"))
3083  raw_spin_unlock_irqrestore_rcu_node(rnp, flags)
3084  rcu_prepare_kthreads(cpu)
3085  rcu_spawn_cpu_nocb_kthread(cpu)
3087  返回:0
调用者
名称描述
rcu_init初始化直接读拷贝更新的锁机制