Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__setscheduler_params

Proto:static void __setscheduler_params(struct task_struct *p, const struct sched_attr *attr)

Type:void

Parameter:

TypeParameterName
struct task_struct *p
const struct sched_attr *attr
4698  policy = sched_policy
4700  If policy == sched_setparam() passes in -1 for its policy, to let the functions* it calls know not to change it. Then policy = policy
4703  policy = policy
4705  If dl_policy(policy) Then This function initializes the sched_dl_entity of a newly becoming* SCHED_DEADLINE task.* Only the static values are considered here, the actual runtime and the* absolute deadline will be properly calculated when the task is enqueued
4707  Else if fair_policy(policy) Then static_prio = Convert user-nice values [ -20 ... 0 ... 19 ]* to static priority [ MAX_RT_PRIO..MAX_PRIO-1 ],* and back.(SCHED_NORMAL, SCHED_BATCH )
4715  rt_priority = SCHED_FIFO, SCHED_RR
4716  normal_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.
4717  set_load_weight(p, true)
Caller
NameDescribe
__setschedulerActually do priority change: must hold pi & rq lock.