Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sched_getparam(2) — DG/UX 5.4R3.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



sched_getparam(2)              DG/UX 5.4R3.00              sched_getparam(2)


NAME
       sched_getparam - get the scheduling priority for a process

SYNOPSIS
       #include <sched.h>

       int schedgetparam (pid, *priority)
            pidt            pid;
            struct schedparam*priority;

DESCRIPTION
       Use schedgetparam(2) to get the scheduling priority of process pid.
       If pid is 0, this call gets the priority of the calling process.  The
       priority value is put in the POSIX-designated structure pointed to by
       priority, shown below:

       struct schedparam
           {
           int schedpriority;
           };

       The larger the number in schedpriority, the higher the priority.

       This call requires no access to pid.

   Note
        * This routine is based on POSIX realtime extension document P1003.4
          draft 14. It is therefore subject to change.

        * Compilation of a source file using this routine requires that
          feature macro _POSIX4_DRAFT_SOURCE be defined.  This feature macro
          is not enabled by any other feature macro, nor does it enable any
          other feature macro.

        * The compiled routine must be linked to library librte.a.

RETURN VALUE
       If successful, schedgetparam returns 0. If unsuccessful, the routine
       returns -1 and sets ERRNO to one of the following:

        EFAULT The address of priority is bad.

        ESRCH  Process pid doesn't exist or is negative.

SEE ALSO
       schedsetparam(2), schedsetscheduler(2), schedgetscheduler(2),
       schedyield(2), schedgetprioritymax(2), schedgetprioritymin(2),
       schedrrgetinterval(2).









Licensed material--property of copyright holder(s)                         1


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