1SCHED_SETSCHEDULER(9) Driver Basics SCHED_SETSCHEDULER(9)
2
3
4
6 sched_setscheduler - change the scheduling policy and/or RT priority of
7 a thread.
8
10 int sched_setscheduler(struct task_struct * p, int policy,
11 const struct sched_param * param);
12
14 p
15 the task in question.
16
17 policy
18 new policy.
19
20 param
21 structure containing the new RT priority.
22
24 0 on success. An error code otherwise.
25
26 NOTE that the task may be already dead.
27
29Kernel Hackers Manual 3.10 June 2019 SCHED_SETSCHEDULER(9)