1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
4
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
5
<TITLE>"SCHED_GET_PRIORITY_MAX"(P) manual page</TITLE>
6
<META NAME="GENERATOR" CONTENT="OpenOffice.org 1.1.3 (Linux)">
7
<META NAME="CREATED" CONTENT="20050505;12575100">
8
<META NAME="CHANGED" CONTENT="20050510;12533300">
9
<!-- manual page source format generated by PolyglotMan v3.2, -->
10
<!-- available at http://polyglotman.sourceforge.net/ -->
12
<BODY LANG="en-GB" BGCOLOR="#ffffff" DIR="LTR">
13
<H4>POSIX Threads for Windows – REFERENCE - <A HREF="http://sources.redhat.com/pthreads-win32">Pthreads-w32</A></H4>
14
<P><A HREF="index.html">Reference Index</A></P>
15
<P><A HREF="#toc">Table of Contents</A></P>
16
<H2><A HREF="#toc0" NAME="sect0">Name</A></H2>
17
<P>sched_get_priority_max, sched_get_priority_min - get priority
18
limits (<B>REALTIME</B>)
20
<H2><A HREF="#toc1" NAME="sect1">Synopsis</A></H2>
21
<P><B>#include <sched.h> </B>
23
<P><B>int sched_get_priority_max(int</B> <I>policy</I><B>); <BR>int
24
sched_get_priority_min(int</B> <I>policy</I><B>); </B>
26
<H2><A HREF="#toc2" NAME="sect2">Description</A></H2>
27
<P>The <B>sched_get_priority_max</B> and <B>sched_get_priority_min</B>
28
functions shall return the appropriate maximum or minimum,
29
respectively, for the scheduling policy specified by <I>policy</I>.
31
<P>The value of <I>policy</I> shall be one of the scheduling policy
32
values defined in <I><sched.h></I>.
34
<H2><A HREF="#toc3" NAME="sect3">Return Value</A></H2>
35
<P>If successful, the <B>sched_get_priority_max</B> and
36
<B>sched_get_priority_min</B> functions shall return the appropriate
37
maximum or minimum values, respectively. If unsuccessful, they shall
38
return a value of -1 and set <I>errno</I> to indicate the error.
40
<H2><A HREF="#toc4" NAME="sect4">Errors</A></H2>
41
<P>The <B>sched_get_priority_max</B> and <B>sched_get_priority_min</B>
42
functions shall fail if:
46
</DT><DD STYLE="margin-bottom: 0.5cm">
47
The value of the <I>policy</I> parameter does not represent a
48
defined scheduling policy.
51
<I>The following sections are informative.</I>
53
<H2><A HREF="#toc5" NAME="sect5">Examples</A></H2>
56
<H2><A HREF="#toc6" NAME="sect6">Application Usage</A></H2>
59
<H2><A HREF="#toc7" NAME="sect7">Rationale</A></H2>
62
<H2><A HREF="#toc8" NAME="sect8">Future Directions</A></H2>
65
<H2><A HREF="#toc9" NAME="sect9">See Also</A></H2>
66
<P><A HREF="sched_getscheduler.html"><B>sched_getscheduler</B>(3)</A>
67
<B>,</B> <A HREF="sched_setscheduler.html"><B>sched_setscheduler</B>(3)</A>
68
<B>,</B> the Base Definitions volume of IEEE Std 1003.1-2001,
69
<I><sched.h></I>
71
<H2><A HREF="#toc10" NAME="sect10">Copyright</A></H2>
72
<P>Portions of this text are reprinted and reproduced in electronic
73
form from IEEE Std 1003.1, 2003 Edition, Standard for Information
74
Technology -- Portable Operating System Interface (POSIX), The Open
75
Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the
76
Institute of Electrical and Electronics Engineers, Inc and The Open
77
Group. In the event of any discrepancy between this version and the
78
original IEEE and The Open Group Standard, the original IEEE and The
79
Open Group Standard is the referee document. The original Standard
80
can be obtained online at <A HREF="http://www.opengroup.org/unix/online.html">http://www.opengroup.org/unix/online.html</A>
83
<P>Modified by Ross Johnson for use with <A HREF="http://sources.redhat.com/pthreads-win32">Pthreads-w32</A>.</P>
85
<P><A NAME="toc"></A><B>Table of Contents</B></P>
87
<LI><P STYLE="margin-bottom: 0cm"><A HREF="#sect0" NAME="toc0">Name</A>
89
<LI><P STYLE="margin-bottom: 0cm"><A HREF="#sect1" NAME="toc1">Synopsis</A>
91
<LI><P STYLE="margin-bottom: 0cm"><A HREF="#sect2" NAME="toc2">Description</A>
93
<LI><P STYLE="margin-bottom: 0cm"><A HREF="#sect3" NAME="toc3">Return
96
<LI><P STYLE="margin-bottom: 0cm"><A HREF="#sect4" NAME="toc4">Errors</A>
98
<LI><P STYLE="margin-bottom: 0cm"><A HREF="#sect5" NAME="toc5">Examples</A>
100
<LI><P STYLE="margin-bottom: 0cm"><A HREF="#sect6" NAME="toc6">Application
103
<LI><P STYLE="margin-bottom: 0cm"><A HREF="#sect7" NAME="toc7">Rationale</A>
105
<LI><P STYLE="margin-bottom: 0cm"><A HREF="#sect8" NAME="toc8">Future
108
<LI><P STYLE="margin-bottom: 0cm"><A HREF="#sect9" NAME="toc9">See
111
<LI><P><A HREF="#sect10" NAME="toc10">Copyright</A>
b'\\ No newline at end of file'