Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sched_getparam(3P4) — CX/UX 6.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sched_setscheduler(3P4)

sched_getscheduler(3P4)

sched_setparam(3P4)

sched_get_priority_max(3P4)

sched_getparam(3P4)  —  (M88K only)

NAME

sched_getparam − POSIX 1003.4 get scheduling parameters for a process

SYNOPSIS

#include <sched.h>

int sched_getparam(pid, param)
pid_t  pid;
struct sched_param ∗param;

DESCRIPTION

The sched_getparam() function returns the scheduling parameters of a process specified by pid in the structure pointed to by param. 

If a process described by pid exists, the scheduling parameters are returned for the process whose process ID is equal to pid.  Note that there are no special permissions required to obtain the scheduling parameters of another process. 

If pid is zero, the scheduling parameters are returned for the calling process. 

RETURN VALUE

Upon successful completion, the sched_getparam() function returns the value 0.  If the sched_getparam() function fails to complete successfully, a value of -1 is returned and errno is set to indicate the error.  Possible errors include:

[ESRCH] No process can be found corresponding to that specified by pid. 

FILES

/usr/lib/libposix4.a

SEE ALSO

sched_setscheduler(3P4), sched_getscheduler(3P4), sched_setparam(3P4), sched_get_priority_max(3P4), CX/RT Reference Manual. 

WARNING

The interface to sched_getparam() is based on IEEE Draft Standard P1003.4/D12.  This is an unapproved draft, subject to change.  Use of information contained in this unapproved draft is at your own risk.  This interface will change to reflect any changes made by future drafts of POSIX 1003.4. 

CX/UX Programmer’s Reference Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026