Name

posix_spawnattr_getschedparam, posix_spawnattr_setschedparam - get or set the spawn-schedparam attribute of a spawn attributes object.


Library

libc.lib


Synopsis

#include <spawn.h>

int posix_spawnattr_getschedparam(const posix_spawnattr_t *attr, struct sched_param *schedparam);
int posix_spawnattr_setschedparam(posix_spawnattr_t *attr,const struct sched_param *schedparam); 

Detailed Description

The posix_spawnattr_getschedparam will get the value of the spawn-schedparam attribute from the attributes object referenced by the argument attr.

The
posix_spawnattr_setschedparam will set the spawn-schedparam attribute in an initialized attributes object referenced by the argument attr.

The
spawn-schedparam attribute represents the scheduling parameters to be assigned to the new process image in a spawn operation. The default value of this attribute is unspecified.


Return Values

On success, posix_spawnattr_getschedparam will return 0 and stores the spawn-schedparam attribute of attr in the object referenced by the argument schedparam. On error, error number is returned to indicate the error.

On success
posix_spawnattr_setschedparam will return 0. On error, error number is returned to indicate the error.


Errors

These functions may fail if:

[EINVAL]
The value specified by attr is invalid.

The
posix_spawnattr_setschedparam() function may fail if:

[EINVAL]
The value of the attribute being set is not valid.


Feedback

For additional information or queries on this page send feedback


© 2005-2007 Nokia 

Top