函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Note a quiescent state for PREEMPT=n. Because we do not need to know* how many quiescent states passed, just if there was at least one since* the start of the grace period, this just sets a flag. The caller must* have disabled preemption.

函数原型:static void rcu_qs(void)

返回类型:void

参数:

799  RCU_LOCKDEP_WARN(preemptible(), "rcu_qs() invoked with preemption enabled!!!")
800  如果非Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(s)则返回
802  trace_rcu_grace_period(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.("rcu_sched"), Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(gp_seq), 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.("cpuqs"))
804  __this_cpu_write(norm, false)
805  如果非Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(exp)则返回
807  __this_cpu_write(exp, false)
808  Report expedited quiescent state for specified rcu_data (CPU).
调用者
名称描述
rcu_all_qsRegister an urgently needed quiescent state. If there is an* emergency, invoke rcu_momentary_dyntick_idle() to do a heavy-weight* dyntick-idle quiescent state visible to other CPUs, which will in
rcu_note_context_switchNote a PREEMPT=n context switch. The caller must have disabled interrupts.
rcu_flavor_sched_clock_irqCheck to see if this CPU is in a non-context-switch quiescent state,* namely user mode and idle loop.
rcu_sched_clock_irqCheck to see if the scheduling-clock interrupt came from an extended* quiescent state, and, if so, tell RCU about it. This function must* be called from hardirq context. It is normally called from the* scheduling-clock interrupt.