Function report |
Source Code:kernel\sched\core.c |
Create Date:2022-07-28 09:36:31 |
| Last Modify:2022-05-22 13:40:38 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:_sched_setscheduler
Proto:static int _sched_setscheduler(struct task_struct *p, int policy, const struct sched_param *param, bool check)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| 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(static_prio), } |
| 5045 | sched_policy = policy |
| 5048 | Return __sched_setscheduler(p, & attr, check, true) |
| Name | Describe |
|---|---|
| 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 | sched_setscheduler_nocheck - change the scheduling policy and/or RT priority of a thread from kernelspace |
| 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 |