MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Standard C Library Functions                   schedgetparam(3C)



NAME
     schedgetparam - get scheduling parameters

SYNOPSIS
     #include 

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


DESCRIPTION
     The schedgetparam() function returns the scheduling parame-
     ters of a process specified by pid in the schedparam struc-
     ture pointed to by param. The only required member of  param
     is schedpriority.


     If a process specified by pid exists and if the calling pro-
     cess  has permission, the scheduling parameters for the pro-
     cess whose process ID is equal to pid will be returned.


     If pid is 0, the scheduling parameters for the calling  pro-
     cess  will be returned. The behavior of the schedgetparam()
     function is unspecified if the value of pid is negative.

RETURN VALUES
     Upon successful completion,  the  schedgetparam()  function
     returns  0. If the call to schedgetparam() is unsuccessful,
     the function returns -1  and  sets  errno  to  indicate  the
     error.

ERORS
     The  schedgetparam() function will fail if:

     EPERM    The requesting process does not have permission  to
              obtain  the  scheduling parameters of the specified
              process.


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


ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:









SunOS 5.11           Last change: 1 Apr 2008                    1






Standard C Library Functions                   schedgetparam(3C)



     
     ATRIBUTE TYPE               ATRIBUTE VALUE             
    
     Interface Stability          Committed                   
    
     MT-Level                     MT-Safe                     
    
     Standard                     See standards(5).           
    


SEE ALSO
     librt(3LIB),     sched.h(3HEAD),     schedgetscheduler(3C),
     schedsetparam(3C),  schedsetscheduler(3C),  attributes(5),
     standards(5)








































SunOS 5.11           Last change: 1 Apr 2008                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™