1POSIX_SPAWNATTR_GETSCHEDPARAPMO(SPI)X Programmer's MPaOnSuIaXl_SPAWNATTR_GETSCHEDPARAM(P)
2
3
4

NAME

6       posix_spawnattr_getschedparam,  posix_spawnattr_setschedparam - get and
7       set  the  spawn-schedparam  attribute  of  a  spawn  attributes  object
8       (ADVANCED REALTIME)
9

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

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

ERRORS

45       These functions may fail if:
46
47       EINVAL The value specified by attr is invalid.
48
49
50       The posix_spawnattr_setschedparam() function may fail if:
51
52       EINVAL The value of the attribute being set is not valid.
53
54
55       The following sections are informative.
56

EXAMPLES

58       None.
59

APPLICATION USAGE

61       These  functions  are  part of the Spawn and Process Scheduling options
62       and need not be provided on all implementations.
63

RATIONALE

65       None.
66

FUTURE DIRECTIONS

68       None.
69

SEE ALSO

71       posix_spawn() , posix_spawnattr_destroy()  ,  posix_spawnattr_init()  ,
72       posix_spawnattr_getsigdefault()    ,    posix_spawnattr_getflags()    ,
73       posix_spawnattr_getpgroup()   ,   posix_spawnattr_getschedpolicy()    ,
74       posix_spawnattr_getsigmask()    ,   posix_spawnattr_setsigdefault()   ,
75       posix_spawnattr_setflags() , posix_spawnattr_setpgroup() ,  posix_spaw‐
76       nattr_setschedpolicy()  , posix_spawnattr_setsigmask() , posix_spawnp()
77       , the  Base  Definitions  volume  of  IEEE Std 1003.1-2001,  <sched.h>,
78       <spawn.h>
79
81       Portions  of  this text are reprinted and reproduced in electronic form
82       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
83       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
84       Specifications Issue 6, Copyright (C) 2001-2003  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
92
93IEEE/The Open Group                  2003     POSIX_SPAWNATTR_GETSCHEDPARAM(P)
Impressum