函数逻辑报告 |
Source Code:kernel\sched\core.c |
Create Date:2022-07-27 10:36:55 |
Last Modify:2022-05-22 13:40:38 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__setscheduler_params
函数原型:static void __setscheduler_params(struct task_struct *p, const struct sched_attr *attr)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | p | |
const struct sched_attr * | attr |
4698 | policy等于sched_policy |
4700 | 如果policy恒等于sched_setparam() passes in -1 for its policy, to let the functions* it calls know not to change it.则policy等于任务调度策略 |
4707 | 否则如果fair_policy(policy)则静态优先级等于Convert user-nice values [ -20 ... 0 ... 19 ]* to static priority [ MAX_RT_PRIO..MAX_PRIO-1 ],* and back.(SCHED_NORMAL, SCHED_BATCH ) |
4715 | 实时任务优先级等于SCHED_FIFO, SCHED_RR |
4717 | set_load_weight(p, true) |
名称 | 描述 |
---|---|
__setscheduler | Actually do priority change: must hold pi & rq lock. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |