雷竞技app下载官方版ray逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c
Create Date:2022-07-27 10:36:44
Last Modify:2022-05-22 13:40:38
Copyright©Brick
首页
雷竞技app下载官方版rayTree

雷竞技app下载官方版ray名称:调度器

雷竞技app下载官方版ray原型:static void __sched notrace 雷竞技app下载官方版ray-雷竞技官网下载(bool preempt)

返回类型:void

参数:

类型参数名称
bool
preempt
4014
 
cpu等于当前cpu ID()
4015
 
rq等于cpu_rq(cpu)
4016
 
4018
 
4020
 
4023
 
4024
 
4034
 
rq_lock(rq, & rf)
4035
 
4038
 
clock_update_flags左移等于1位
4039
 
4041
 
4042
 
如果非preempt任务状态
4044
 
4045
 
否则
4046
 
4048
 
如果in_iowait
4056
 
4057
 
4058
 
4061
 
4081
 
switch_count先自加
4086
 
4087
 
否则
4089
 
4092
 
调用者
名称描述
do_task_dead
schedule
进程调度
schedule_idle
synchronize_rcu_tasks() makes sure that no task is stuck in preempted* state (have scheduled out non-voluntarily) by making sure that all* tasks have either left the run queue or have gone into user space
preempt_schedule_common
preempt_schedule_irq
This is the entry point to schedule() from kernel preemption* off of irq context.* Note, that this is called and return with irqs disabled. This will* protect us against recursive calling from irq.