函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Priority of the task has changed. Check to see if we preempt* the current task.

函数原型:static void prio_changed_fair(struct rq *rq, struct task_struct *p, int oldprio)

返回类型:void

参数:

类型参数名称
struct rq *rq
struct task_struct *p
intoldprio
10336  如果非进程处于任务队列则返回
10344  如果当前任务恒等于p
10345  如果prio大于oldprio标记当前进程需要被调度出去
10347  否则check_preempt_curr(rq, p, 0)