函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Actually do priority change: must hold pi & rq lock.

函数原型:static void __setscheduler(struct rq *rq, struct task_struct *p, const struct sched_attr *attr, bool keep_boost)

返回类型:void

参数:

类型参数名称
struct rq *rq
struct task_struct *p
const struct sched_attr *attr
boolkeep_boost
4728  如果sched_flags按位与SCHED_FLAG_KEEP_PARAMS则返回
4731  __setscheduler_params(p, attr)
4737  prio等于Calculate the expected normal priority: i.e. priority* without taking RT-inheritance into account. Might be* boosted by interactivity modifiers. Changes upon fork,* setprio syscalls, and whenever the interactivity* estimator recalculates.
4738  如果keep_boostprio等于rt_effective_prio(p, prio)
4741  如果dl_prio(prio)则调度函数等于dl_sched_class
4743  否则如果rt_prio(prio)则调度函数等于rt_sched_class
4745  否则调度函数等于fair_sched_class
调用者
名称描述
__sched_setscheduler