函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Note a PREEMPT=n context switch. The caller must have disabled interrupts.

函数原型:void rcu_note_context_switch(bool preempt)

返回类型:void

参数:

类型参数名称
boolpreempt
846  Tracepoint for start/end markers used for utilization calculations.* By convention, the string is of the following forms:* "Start " -- Mark the start of the specified activity,* such as "context switch". Nesting is permitted.
847  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.
849  如果非smp_load_acquire(this_cpu_ptr( & rcu_urgent_qs))则转到:out
851  抢占保护下的写CPU(rcu_urgent_qs, false)
852  如果此条件成立可能性小(为编译器优化)(Operations for contexts where we do not want to do any checks for* preemptions(rcu_need_heavy_qs))则Let the RCU core know that this CPU has gone through the scheduler,* which is a quiescent state
854  如果非preemptNote a quasi-voluntary context switch for RCU-tasks's benefit.* This is a macro rather than an inline function to avoid #include hell.(当前进程)
856  out :
857  Tracepoint for start/end markers used for utilization calculations.* By convention, the string is of the following forms:* "Start " -- Mark the start of the specified activity,* such as "context switch". Nesting is permitted.
调用者
名称描述
__schedule调度器