Function report |
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 activity | Download SCCT | Chinese |
Name:__setscheduler_params
Proto:static void __setscheduler_params(struct task_struct *p, const struct sched_attr *attr)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
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 |
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 |
4717 | set_load_weight(p, true) |
Name | Describe |
---|---|
__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 |