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

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       sched_getscheduler - get scheduling policy (REALTIME)
13

SYNOPSIS

15       #include <sched.h>
16
17       int sched_getscheduler(pid_t pid);
18
19

DESCRIPTION

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

RETURN VALUE

36       Upon successful completion,  the  sched_getscheduler()  function  shall
37       return the scheduling policy of the specified process. If unsuccessful,
38       the function shall return -1 and set errno to indicate the error.
39

ERRORS

41       The sched_getscheduler() function shall fail if:
42
43       EPERM  The requesting process does not have permission to determine the
44              scheduling policy of the specified process.
45
46       ESRCH  No process can be found corresponding to that specified by pid.
47
48
49       The following sections are informative.
50

EXAMPLES

52       None.
53

APPLICATION USAGE

55       None.
56

RATIONALE

58       None.
59

FUTURE DIRECTIONS

61       None.
62

SEE ALSO

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