Function report |
Source Code:kernel\sched\core.c |
Create Date:2022-07-28 09:35:36 |
| Last Modify:2022-05-22 13:40:38 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static inline int normal_prio(struct task_struct *p)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | p |
| 1358 | If task_has_dl_policy(p) Then prio = SCHED_DEADLINE tasks has negative priorities, reflecting* the fact that any of them has higher prio than RT and* NORMAL/BATCH tasks. - 1 |
| 1360 | Else if task_has_rt_policy(p) Then prio = MAX_RT_PRIO - 1 - rt_priority |
| 1364 | Return prio |
| Name | Describe |
|---|---|
| effective_prio | Calculate the current priority, i.e. the priority* taken into account by the scheduler. This value might* be boosted by RT tasks, or might be boosted by* interactivity modifiers. Will be RT if the task got* RT-boosted |
| __setscheduler_params | |
| __setscheduler | Actually do priority change: must hold pi & rq lock. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |