1posix_spawnattr_getschedpaSrtaamn(d3aCr)d C Library Fupnocstiixo_nsspawnattr_getschedparam(3C)
2
3
4

NAME

6       posix_spawnattr_getschedparam,  posix_spawnattr_setschedparam - get and
7       set spawn-schedparam attribute of spawn attributes object
8

SYNOPSIS

10       #include <spawn.h>
11       #include <sched.h>
12
13       int posix_spawnattr_getschedparam(const posix_spawnattr_t *restrict attr,
14            struct sched_param *restrict schedparam);
15
16
17       int posix_spawnattr_setschedparam(posix_spawnattr_t *restrict attr,
18            const struct sched_param *restrict schedparam);
19
20

DESCRIPTION

22       The posix_spawnattr_getschedparam() function obtains the value  of  the
23       spawn-schedparam  attribute  from  the  attributes object referenced by
24       attr.
25
26
27       The posix_spawnattr_setschedparam() function sets the  spawn-schedparam
28       attribute in an initialized attributes object referenced by attr.
29
30
31       The  spawn-schedparam attribute represents the scheduling parameters to
32       be assigned  to  the  new  process  image  in  a  spawn  operation  (if
33       POSIX_SPAWN_SETSCHEDULER  or  POSIX_SPAWN_SETSCHEDPARAM  is  set in the
34       spawn-flags attribute). The default value of this attribute is unspeci‐
35       fied.
36

RETURN VALUES

38       Upon  successful  completion, posix_spawnattr_getschedparam() returns 0
39       and stores the value of the spawn-schedparam attribute of attr into the
40       object referenced by the schedparam parameter. Otherwise, an error num‐
41       ber is returned to indicate the error.
42
43
44       Upon successful completion, posix_spawnattr_setschedparam() returns  0.
45       Otherwise, an error number is returned to indicate the error.
46

ERRORS

48       These functions may fail if:
49
50       EINVAL    The value specified by attr is invalid.
51
52
53
54       The posix_spawnattr_setschedparam() function may fail if:
55
56       EINVAL    The value of the attribute being set is not valid.
57
58

ATTRIBUTES

60       See attributes(5) for descriptions of the following attributes:
61
62
63
64
65       ┌─────────────────────────────┬─────────────────────────────┐
66       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
67       ├─────────────────────────────┼─────────────────────────────┤
68       │Interface Stability          │Standard                     │
69       ├─────────────────────────────┼─────────────────────────────┤
70       │MT-Level                     │MT-Safe                      │
71       └─────────────────────────────┴─────────────────────────────┘
72

SEE ALSO

74       posix_spawn(3C),    posix_spawnattr_destroy(3C),   posix_spawnattr_get‐
75       flags(3C), posix_spawnattr_getpgroup(3C),  posix_spawnattr_getschedpol‐
76       icy(3C),   posix_spawnattr_getsigdefault(3C),   posix_spawnattr_getsig‐
77       mask(3C), attributes(5), standards(5)
78
79
80
81SunOS 5.11                        30 Jan 2004posix_spawnattr_getschedparam(3C)
Impressum