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
11

NAME

13       posix_spawnattr_getschedparam, posix_spawnattr_setschedparam — get  and
14       set  the  spawn-schedparam  attribute  of  a  spawn  attributes  object
15       (ADVANCED REALTIME)
16

SYNOPSIS

18       #include <spawn.h>
19       #include <sched.h>
20
21       int posix_spawnattr_getschedparam(const posix_spawnattr_t
22           *restrict attr, struct sched_param *restrict schedparam);
23       int posix_spawnattr_setschedparam(posix_spawnattr_t *restrict attr,
24           const struct sched_param *restrict schedparam);
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       The posix_spawnattr_setschedparam() function may fail if:
56
57       EINVAL The value of the attribute being set is not valid.
58
59       The following sections are informative.
60

EXAMPLES

62       None.
63

APPLICATION USAGE

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

RATIONALE

69       None.
70

FUTURE DIRECTIONS

72       None.
73

SEE ALSO

75       posix_spawn(), posix_spawnattr_destroy(), posix_spawnattr_getsigde‐
76       fault(), posix_spawnattr_getflags(), posix_spawnattr_getpgroup(),
77       posix_spawnattr_getschedpolicy(), posix_spawnattr_getsigmask()
78
79       The Base Definitions volume of POSIX.1‐2008, <sched.h>, <spawn.h>
80
82       Portions  of  this text are reprinted and reproduced in electronic form
83       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
84       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
85       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
86       cal  and  Electronics  Engineers,  Inc  and  The  Open Group.  (This is
87       POSIX.1-2008 with the 2013 Technical Corrigendum  1  applied.)  In  the
88       event of any discrepancy between this version and the original IEEE and
89       The Open Group Standard, the original IEEE and The Open Group  Standard
90       is  the  referee document. The original Standard can be obtained online
91       at http://www.unix.org/online.html .
92
93       Any typographical or formatting errors that appear  in  this  page  are
94       most likely to have been introduced during the conversion of the source
95       files to man page format. To report such errors,  see  https://www.ker
96       nel.org/doc/man-pages/reporting_bugs.html .
97
98
99
100IEEE/The Open Group                  2013    POSIX_SPAWNATTR_GETSCHEDPARAM(3P)
Impressum