1SCHED_GETPARAM(3P)         POSIX Programmer's Manual        SCHED_GETPARAM(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
11

NAME

13       sched_getparam — get scheduling parameters (REALTIME)
14

SYNOPSIS

16       #include <sched.h>
17
18       int sched_getparam(pid_t pid, struct sched_param *param);
19

DESCRIPTION

21       The sched_getparam() function shall return the scheduling parameters of
22       a  process  specified by pid in the sched_param structure pointed to by
23       param.
24
25       If a process specified by pid exists, and if the  calling  process  has
26       permission,  the scheduling parameters for the process whose process ID
27       is equal to pid shall be returned.
28
29       If pid is zero, the scheduling parameters for the calling process shall
30       be  returned. The behavior of the sched_getparam() function is unspeci‐
31       fied if the value of pid is negative.
32

RETURN VALUE

34       Upon successful completion, the sched_getparam() function shall  return
35       zero.  If  the  call  to sched_getparam() is unsuccessful, the function
36       shall return a value of −1 and set errno to indicate the error.
37

ERRORS

39       The sched_getparam() function shall fail if:
40
41       EPERM  The requesting process does not have permission  to  obtain  the
42              scheduling parameters of the specified process.
43
44       ESRCH  No process can be found corresponding to that specified by pid.
45
46       The following sections are informative.
47

EXAMPLES

49       None.
50

APPLICATION USAGE

52       None.
53

RATIONALE

55       None.
56

FUTURE DIRECTIONS

58       None.
59

SEE ALSO

61       sched_getscheduler(), sched_setparam(), sched_setscheduler()
62
63       The Base Definitions volume of POSIX.1‐2008, <sched.h>
64
66       Portions  of  this text are reprinted and reproduced in electronic form
67       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
68       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
69       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
70       cal  and  Electronics  Engineers,  Inc  and  The  Open Group.  (This is
71       POSIX.1-2008 with the 2013 Technical Corrigendum  1  applied.)  In  the
72       event of any discrepancy between this version and the original IEEE and
73       The Open Group Standard, the original IEEE and The Open Group  Standard
74       is  the  referee document. The original Standard can be obtained online
75       at http://www.unix.org/online.html .
76
77       Any typographical or formatting errors that appear  in  this  page  are
78       most likely to have been introduced during the conversion of the source
79       files to man page format. To report such errors,  see  https://www.ker
80       nel.org/doc/man-pages/reporting_bugs.html .
81
82
83
84IEEE/The Open Group                  2013                   SCHED_GETPARAM(3P)
Impressum