1POSIX_SPAWNATTR_GETSCHEDPOLIPCOYS(IPX)Programmer'sPMOaSnIuXa_lSPAWNATTR_GETSCHEDPOLICY(P)
2
3
4

NAME

6       posix_spawnattr_getschedpolicy,  posix_spawnattr_setschedpolicy  -  get
7       and set the spawn-schedpolicy attribute of a  spawn  attributes  object
8       (ADVANCED REALTIME)
9

SYNOPSIS

11       #include <spawn.h>
12       #include <sched.h>
13
14       int posix_spawnattr_getschedpolicy(const posix_spawnattr_t *
15              restrict attr, int *restrict schedpolicy);
16       int posix_spawnattr_setschedpolicy(posix_spawnattr_t *attr,
17              int schedpolicy);
18
19

DESCRIPTION

21       The posix_spawnattr_getschedpolicy() function shall obtain the value of
22       the spawn-schedpolicy attribute from the attributes  object  referenced
23       by attr.
24
25       The  posix_spawnattr_setschedpolicy()  function  shall  set  the spawn-
26       schedpolicy attribute in an initialized attributes object referenced by
27       attr.
28
29       The  spawn-schedpolicy attribute represents the scheduling policy to be
30       assigned  to  the  new  process  image  in  a   spawn   operation   (if
31       POSIX_SPAWN_SETSCHEDULER  is  set  in  the  spawn-flags attribute). The
32       default value of this attribute is unspecified.
33

RETURN VALUE

35       Upon  successful  completion,  posix_spawnattr_getschedpolicy()   shall
36       return  zero  and store the value of the spawn-schedpolicy attribute of
37       attr into the object referenced by the  schedpolicy  parameter;  other‐
38       wise, an error number shall be returned to indicate the error.
39
40       Upon   successful  completion,  posix_spawnattr_setschedpolicy()  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_setschedpolicy() 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_getschedparam()    ,
74       posix_spawnattr_getsigmask()    ,   posix_spawnattr_setsigdefault()   ,
75       posix_spawnattr_setflags() , posix_spawnattr_setpgroup() ,  posix_spaw‐
76       nattr_setschedparam() , 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_GETSCHEDPOLICY(P)
Impressum