1SCHED_GETSCHEDULER(P)      POSIX Programmer's Manual     SCHED_GETSCHEDULER(P)
2
3
4

NAME

6       sched_getscheduler - get scheduling policy (REALTIME)
7

SYNOPSIS

9       #include <sched.h>
10
11       int sched_getscheduler(pid_t pid);
12
13

DESCRIPTION

15       The sched_getscheduler() function shall return the scheduling policy of
16       the process specified by pid. If the value  of  pid  is  negative,  the
17       behavior of the sched_getscheduler() function is unspecified.
18
19       The  values that can be returned by sched_getscheduler() are defined in
20       the <sched.h> header.
21
22       If a process specified by pid exists, and if the  calling  process  has
23       permission,  the  scheduling  policy  shall be returned for the process
24       whose process ID is equal to pid.
25
26       If pid is zero, the scheduling policy shall be returned for the calling
27       process.
28

RETURN VALUE

30       Upon  successful  completion,  the  sched_getscheduler() function shall
31       return the scheduling policy of the specified process. If unsuccessful,
32       the function shall return -1 and set errno to indicate the error.
33

ERRORS

35       The sched_getscheduler() function shall fail if:
36
37       EPERM  The requesting process does not have permission to determine the
38              scheduling policy of the specified process.
39
40       ESRCH  No process can be found corresponding to that specified by pid.
41
42
43       The following sections are informative.
44

EXAMPLES

46       None.
47

APPLICATION USAGE

49       None.
50

RATIONALE

52       None.
53

FUTURE DIRECTIONS

55       None.
56

SEE ALSO

58       sched_getparam() , sched_setparam() , sched_setscheduler() ,  the  Base
59       Definitions volume of IEEE Std 1003.1-2001, <sched.h>
60
62       Portions  of  this text are reprinted and reproduced in electronic form
63       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
64       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
65       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
66       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
67       event of any discrepancy between this version and the original IEEE and
68       The  Open Group Standard, the original IEEE and The Open Group Standard
69       is the referee document. The original Standard can be  obtained  online
70       at http://www.opengroup.org/unix/online.html .
71
72
73
74IEEE/The Open Group                  2003                SCHED_GETSCHEDULER(P)
Impressum