1 .\" Copyright (c) 1998 HD Associates, Inc.
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 .Dt SCHED_GET_PRIORITY_MAX 2
31 .Nm sched_get_priority_max ,
32 .Nm sched_get_priority_min ,
33 .Nm sched_rr_get_interval
34 .Nd get scheduling parameter limits
40 .Fn sched_get_priority_max "int policy"
42 .Fn sched_get_priority_min "int policy"
44 .Fn sched_rr_get_interval "pid_t pid" "struct timespec *interval"
47 .Fn sched_get_priority_max
49 .Fn sched_get_priority_min
50 system calls return the appropriate maximum or minimum, respectively,
51 for the scheduling policy specified by
54 .Fn sched_rr_get_interval
55 system call updates the
57 structure referenced by the
59 argument to contain the current execution time limit (i.e., time
60 quantum) for the process specified by
64 is zero, the current execution time limit for the calling process is
69 should be one of the scheduling policy values defined in
71 .Bl -tag -width [SCHED_OTHER]
73 First-in-first-out fixed priority scheduling with no round robin scheduling;
75 The standard time sharing scheduler;
77 Round-robin scheduling across same priority processes.
81 .Fn sched_get_priority_max
83 .Fn sched_get_priority_min
84 system calls shall return the appropriate maximum or minimum values,
86 If unsuccessful, they shall return a value of -1 and set
88 to indicate the error.
90 .Rv -std sched_rr_get_interval
94 will be set to the corresponding value:
99 argument does not represent a defined scheduling policy.
102 .Fn sched_get_priority_max ,
103 .Fn sched_get_priority_min ,
105 .Fn sched_rr_get_interval
106 system calls are not supported by the implementation.
108 No process can be found corresponding to that specified by
112 .Xr sched_getparam 2 ,
113 .Xr sched_getscheduler 2 ,
114 .Xr sched_setparam 2 ,
115 .Xr sched_setscheduler 2
118 .Fn sched_get_priority_max ,
119 .Fn sched_get_priority_min ,
121 .Fn sched_rr_get_interval
122 system calls conform to