'\" t .\" Title: sched_setscheduler_nocheck .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SCHED_SETSCHEDULER_N" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Driver Basics" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" sched_setscheduler_nocheck \- change the scheduling policy and/or RT priority of a thread from kernelspace\&. .SH "SYNOPSIS" .HP \w'int\ sched_setscheduler_nocheck('u .BI "int sched_setscheduler_nocheck(struct\ task_struct\ *\ " "p" ", int\ " "policy" ", const\ struct\ sched_param\ *\ " "param" ");" .SH "ARGUMENTS" .PP \fIp\fR .RS 4 the task in question\&. .RE .PP \fIpolicy\fR .RS 4 new policy\&. .RE .PP \fIparam\fR .RS 4 structure containing the new RT priority\&. .RE .SH "DESCRIPTION" .PP Just like sched_setscheduler, only don\*(Aqt bother checking if the current context has permission\&. For example, this is needed in \fBstop_machine\fR: we create temporary high priority worker threads, but our caller might not have that capability\&. .SH "RETURN" .PP 0 on success\&. An error code otherwise\&. .SH "COPYRIGHT" .br