Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sched_get_priority_max(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_getparam(3P4)

getquantum(2)

sched_get_priority_max(3P4)  —  (M88K only)

NAME

sched_get_priority_max, sched_get_priority_min, sched_get_rr_interval − POSIX 1003.4 get scheduling policy information

SYNOPSIS

#include <sched.h>
#include <timers.h>

int sched_get_priority_max(policy)
int policy;

int sched_get_priority_min(policy)
int policy;

int sched_get_rr_interval(pid, min)
pid_t  pid;
struct timespec ∗min;

DESCRIPTION

The sched_get_priority_max() and sched_get_priority_min() functions return the appropriate maximum or minimum priority, respectively, for the scheduling policy specified by policy.  The value of policy must be one of the scheduling policy values defined in <sched.h>. 

The sched_get_rr_interval() function returns the current time quantum for the process specified by pid in the timespec structure pointed to by min.  The time quantum is the execution time limit at which a scheduling decision must be made when another process at the same priority is ready to execute. 

If pid is specified as zero, the time quantum for the current process is returned. 

RETURN VALUE

The sched_get_priority_max() and sched_get_priority_min() functions, if successful, return the appropriate maximum or minimum values, respectively.  If they fail to complete successfully, a value of -1 is returned, and errno is set to indicate the error.  Possible error returns are:

[EINVAL] The value of the policy parameter does not represent a defined scheduling policy. 

The sched_get_rr_interval() function returns zero if it completes successfully, or a value of -1 with errno set to indicate the error.  Possible error returns are:

[EINVAL] The pid specified does not indicate a process scheduled in the SCHED_RR scheduling class. 

[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_getparam(3P4), getquantum(2), CX/RT Reference Manual. 

WARNING

The interfaces to sched_get_priority_max(), sched_get_priority_min(), and sched_get_rr_interval(), are 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