1SCHED_SETSCHEDULER_N(9) Driver Basics SCHED_SETSCHEDULER_N(9)
2
3
4
6 sched_setscheduler_nocheck - change the scheduling policy and/or RT
7 priority of a thread from kernelspace.
8
10 int sched_setscheduler_nocheck(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 Just like sched_setscheduler, only don't bother checking if the current
25 context has permission. For example, this is needed in stop_machine: we
26 create temporary high priority worker threads, but our caller might not
27 have that capability.
28
30 0 on success. An error code otherwise.
31
33Kernel Hackers Manual 3.10 June 2019 SCHED_SETSCHEDULER_N(9)