Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sched_getscheduler(3P4) — CX/UX 6.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sched_setscheduler(3P4)

sched_setparam(3P4)

sched_getparam(3P4)

sched_get_priority_max(3P4)

sched_getscheduler(3P4)  —  (M88K only)

NAME

sched_getscheduler − POSIX 1003.4 get scheduling policy for a process

SYNOPSIS

#include <sched.h>

int sched_getscheduler(pid)
pid_t  pid;

DESCRIPTION

The sched_getscheduler() function returns the scheduling policy of the process specified by pid. 

The values that can be returned by sched_getscheduler() are defined in the header file <sched.h>. 

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

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

RETURN VALUE

Upon successful completion, the sched_getscheduler() function returns the scheduling policy of the specified process.  If any of the following conditions occur, the sched_getscheduler() function returns -1 and sets errno to the corresponding value:

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

FILES

/usr/lib/libposix4.a

SEE ALSO

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

WARNING

The interface to sched_getscheduler() 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