函数逻辑报告 |
Source Code:kernel\sched\core.c |
Create Date:2022-07-27 10:37:07 |
Last Modify:2022-05-22 13:40:38 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:_sched_setscheduler
函数原型:static int _sched_setscheduler(struct task_struct *p, int policy, const struct sched_param *param, bool check)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | p | |
int | policy | |
const struct sched_param * | param | |
bool | check |
5035 | struct sched_attr attr = {sched_policy = policy, SCHED_FIFO, SCHED_RR = sched_priority, SCHED_NORMAL, SCHED_BATCH = PRIO_TO_NICE(静态优先级), } |
5045 | sched_policy等于policy |
5048 | 返回:__sched_setscheduler(p, & attr, check, true) |
名称 | 描述 |
---|---|
sched_setscheduler | sched_setscheduler - change the scheduling policy and/or RT priority of a thread.*@p: the task in question.*@policy: new policy.*@param: structure containing the new RT priority.* Return: 0 on success. An error code otherwise. |
sched_setscheduler_nocheck | 改变调度策略和线程优先级 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |