函数逻辑报告 |
Source Code:kernel\sched\core.c |
Create Date:2022-07-27 10:37:09 |
| Last Modify:2022-05-22 13:40:38 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:do_sched_setscheduler
函数原型:static int do_sched_setscheduler(pid_t pid, int policy, struct sched_param __user *param)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| pid_t | pid | |
| int | policy | |
| struct sched_param __user * | param |
| 5107 | 如果copy_from_user( & lparam, param, sizeof(structsched_param))则返回:负EFAULT |
| 5112 | p等于d_process_by_pid - find a process with a matching PID value.*@pid: the pid in question.* The task of @pid, if found. %NULL otherwise. |
| 5113 | 如果此条件成立可能性大(为编译器优化)(p)则get_task_struct(p) |
| 5117 | 如果此条件成立可能性大(为编译器优化)(p)则 |
| 5119 | put_task_struct(p) |
| 5122 | 返回:retval |
| 名称 | 描述 |
|---|---|
| SYSCALL_DEFINE3 | sys_sched_setscheduler - set/change the scheduler policy and RT priority*@pid: the pid in question.*@policy: new policy.*@param: structure containing the new RT priority.* Return: 0 on success. An error code otherwise. |
| SYSCALL_DEFINE2 | sys_sched_setparam - set/change the RT priority of a thread*@pid: the pid in question.*@param: structure containing the new RT priority.* Return: 0 on success. An error code otherwise. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |