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

NAME

6       sched_getparam - get scheduling parameters (REALTIME)
7

SYNOPSIS

9       #include <sched.h>
10
11       int sched_getparam(pid_t pid, struct sched_param *param);
12
13

DESCRIPTION

15       The sched_getparam() function shall return the scheduling parameters of
16       a process specified by pid in the sched_param structure pointed  to  by
17       param.
18
19       If  a  process  specified by pid exists, and if the calling process has
20       permission, the scheduling parameters for the process whose process  ID
21       is equal to pid shall be returned.
22
23       If pid is zero, the scheduling parameters for the calling process shall
24       be returned. The behavior of the sched_getparam() function is  unspeciā€
25       fied if the value of pid is negative.
26

RETURN VALUE

28       Upon  successful completion, the sched_getparam() function shall return
29       zero. If the call to sched_getparam()  is  unsuccessful,  the  function
30       shall return a value of -1 and set errno to indicate the error.
31

ERRORS

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

EXAMPLES

44       None.
45

APPLICATION USAGE

47       None.
48

RATIONALE

50       None.
51

FUTURE DIRECTIONS

53       None.
54

SEE ALSO

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