1POSIX_SPAWNATTR_GETSCHEDPARAPMO(S3IPX)Programmer'sPMOaSnIuXa_lSPAWNATTR_GETSCHEDPARAM(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       posix_spawnattr_getschedparam, posix_spawnattr_setschedparam - get  and
13       set  the  spawn-schedparam  attribute  of  a  spawn  attributes  object
14       (ADVANCED REALTIME)
15

SYNOPSIS

17       #include <spawn.h>
18       #include <sched.h>
19
20       int posix_spawnattr_getschedparam(const posix_spawnattr_t *
21              restrict attr, struct sched_param *restrict schedparam);
22       int posix_spawnattr_setschedparam(posix_spawnattr_t *restrict attr,
23              const struct sched_param *restrict schedparam);
24
25

DESCRIPTION

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

RETURN VALUE

41       Upon   successful   completion,  posix_spawnattr_getschedparam()  shall
42       return zero and store the value of the  spawn-schedparam  attribute  of
43       attr into the object referenced by the schedparam parameter; otherwise,
44       an error number shall be returned to indicate the error.
45
46       Upon  successful  completion,   posix_spawnattr_setschedparam()   shall
47       return  zero;  otherwise, an error number shall be returned to indicate
48       the error.
49

ERRORS

51       These functions may fail if:
52
53       EINVAL The value specified by attr is invalid.
54
55
56       The posix_spawnattr_setschedparam() function may fail if:
57
58       EINVAL The value of the attribute being set is not valid.
59
60
61       The following sections are informative.
62

EXAMPLES

64       None.
65

APPLICATION USAGE

67       These functions are part of the Spawn and  Process  Scheduling  options
68       and need not be provided on all implementations.
69

RATIONALE

71       None.
72

FUTURE DIRECTIONS

74       None.
75

SEE ALSO

77       posix_spawn(),    posix_spawnattr_destroy(),    posix_spawnattr_init(),
78       posix_spawnattr_getsigdefault(),            posix_spawnattr_getflags(),
79       posix_spawnattr_getpgroup(),          posix_spawnattr_getschedpolicy(),
80       posix_spawnattr_getsigmask(),          posix_spawnattr_setsigdefault(),
81       posix_spawnattr_setflags(),   posix_spawnattr_setpgroup(),  posix_spaw‐
82       nattr_setschedpolicy(),  posix_spawnattr_setsigmask(),  posix_spawnp(),
83       the   Base   Definitions  volume  of  IEEE Std 1003.1-2001,  <sched.h>,
84       <spawn.h>
85
87       Portions of this text are reprinted and reproduced in  electronic  form
88       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
89       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
90       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
91       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
92       event of any discrepancy between this version and the original IEEE and
93       The Open Group Standard, the original IEEE and The Open Group  Standard
94       is  the  referee document. The original Standard can be obtained online
95       at http://www.opengroup.org/unix/online.html .
96
97
98
99IEEE/The Open Group                  2003    POSIX_SPAWNATTR_GETSCHEDPARAM(3P)
Impressum