SCHED_SETSCHEDULER_N(9) | Driver Basics | SCHED_SETSCHEDULER_N(9) |
NAME¶
sched_setscheduler_nocheck - change the scheduling policy and/or RT priority of a thread from kernelspace.
SYNOPSIS¶
int sched_setscheduler_nocheck(struct task_struct * p, int policy, const struct sched_param * param);
ARGUMENTS¶
p
policy
param
DESCRIPTION¶
Just like sched_setscheduler, only don't bother checking if the current context has permission. For example, this is needed in stop_machine: we create temporary high priority worker threads, but our caller might not have that capability.
RETURN¶
0 on success. An error code otherwise.
COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |