函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-27 10:36:13
Last Modify:2022-05-22 13:40:38 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:check_preempt_curr

函数原型:void check_preempt_curr(struct rq *rq, struct task_struct *p, int flags)

返回类型:void

参数:

类型参数名称
struct rq *rq
struct task_struct *p
intflags
1422  如果调度函数恒等于sched_class
1423  check_preempt_curr(rq, p, flags)
1424  否则
1426  如果class恒等于sched_class退出
1428  如果class恒等于调度函数
1439  如果进程处于任务队列检查进程是否已经设置了调度标志rq_clock_skip_update(rq)
调用者
名称描述
ttwu_do_wakeupMark the task runnable and perform wakeup-preemption.
wake_up_new_taskwake_up_new_task - wake up a newly created task for the first time.* This function will do some initial scheduler statistics housekeeping* that must be done for every newly created context, then puts the task* on the runqueue and wakes it.
prio_changed_fairPriority of the task has changed. Check to see if we preempt* the current task.
switched_to_fair