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

DESCRIPTION

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

RETURN VALUE

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

ERRORS

50       These functions may fail if:
51
52       EINVAL The value specified by attr is invalid.
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       The following sections are informative.
59

EXAMPLES

61       None.
62

APPLICATION USAGE

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

RATIONALE

68       None.
69

FUTURE DIRECTIONS

71       None.
72

SEE ALSO

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