1sched_getparam(3C)       Standard C Library Functions       sched_getparam(3C)
2
3
4

NAME

6       sched_getparam - get scheduling parameters
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  returns the scheduling parameters of a
16       process specified by pid in the sched_param  structure  pointed  to  by
17       param. The only required member of param is sched_priority.
18
19
20       If  a  process  specified  by pid exists and if the calling process has
21       permission, the scheduling parameters for the process whose process  ID
22       is equal to pid will be returned.
23
24
25       If  pid is 0, the scheduling parameters for the calling process will be
26       returned. The behavior of the sched_getparam() function is  unspecified
27       if the value of pid is negative.
28

RETURN VALUES

30       Upon successful completion, the sched_getparam() function returns 0. If
31       the call to sched_getparam() is unsuccessful, the function  returns  −1
32       and sets errno to indicate the error.
33

ERRORS

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

ATTRIBUTES

46       See attributes(5) for descriptions of the following attributes:
47
48
49
50
51       ┌─────────────────────────────┬─────────────────────────────┐
52ATTRIBUTE TYPE               ATTRIBUTE VALUE              
53       ├─────────────────────────────┼─────────────────────────────┤
54       │Interface Stability          │Committed                    │
55       ├─────────────────────────────┼─────────────────────────────┤
56       │MT-Level                     │MT-Safe                      │
57       ├─────────────────────────────┼─────────────────────────────┤
58       │Standard                     │See standards(5).            │
59       └─────────────────────────────┴─────────────────────────────┘
60

SEE ALSO

62       librt(3LIB),    sched.h(3HEAD),    sched_getscheduler(3C),   sched_set‐
63       param(3C), sched_setscheduler(3C), attributes(5), standards(5)
64
65
66
67SunOS 5.11                        1 Apr 2008                sched_getparam(3C)
Impressum