Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-28 09:36:20
Last Modify:2022-05-22 13:40:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Actually do priority change: must hold pi & rq lock.

Proto:static void __setscheduler(struct rq *rq, struct task_struct *p, const struct sched_attr *attr, bool keep_boost)

Type:void

Parameter:

TypeParameterName
struct rq *rq
struct task_struct *p
const struct sched_attr *attr
boolkeep_boost
4728  If sched_flags & SCHED_FLAG_KEEP_PARAMS Then Return
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  If keep_boost Then prio = rt_effective_prio(p, prio)
4741  If dl_prio(prio) Then sched_class = dl_sched_class
4743  Else if rt_prio(prio) Then sched_class = rt_sched_class
4745  Else sched_class = fair_sched_class
Caller
NameDescribe
__sched_setscheduler