Function report |
Source Code:kernel\sched\core.c |
Create Date:2022-07-28 09:36:33 |
Last Modify:2022-05-22 13:40:38 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_sched_setscheduler
Proto:static int do_sched_setscheduler(pid_t pid, int policy, struct sched_param __user *param)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
pid_t | pid | |
int | policy | |
struct sched_param __user * | param |
5107 | If copy_from_user( & lparam, param, sizeof(structsched_param)) Then Return -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 | If Value is more likely to compile time(p) Then get_task_struct(p) |
5117 | If Value is more likely to compile time(p) Then |
5119 | put_task_struct(p) |
5122 | Return retval |
Name | Describe |
---|---|
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. |
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 |