MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


System Calls                                         psetlist(2)



NAME
     psetlist - get list of processor sets

SYNOPSIS
     #include 

     int psetlist(psetidt *psetlist, uintt *numpsets);


DESCRIPTION
     The psetlist() function returns a list of processor sets in
     the system.


     If numpsets is non-null, then on successful  completion  the
     number of processor sets in the system will be stored in the
     location pointed to by numpsets.


     If numpsets and psetlist are both  non-null,  then  psetlist
     points  to  a  buffer  where a list of processor sets in the
     system is to be stored, and numpsets points to  the  maximum
     number  of  processor  set IDs the buffer can hold.  On suc-
     cessful completion, the list of processor  sets  up  to  the
     maximum  buffer  size  is stored in the buffer pointed to by
     psetlist.

RETURN VALUES
     Upon successful completion, 0 is returned. Otherwise, -1  is
     returned and errno is set to indicate the error.

ERORS
     The psetlist() function will fail if:

     EFAULT    The location pointed to by  psetlist  or  numpsets
               was not null and not writable by the user.


USAGE
     If the caller is in a non-global zone and the pools facility
     is active, psetlist() returns only the processor set of the
     pool to which the zone is bound.

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









SunOS 5.11          Last change: 28 Jun 2004                    1






System Calls                                         psetlist(2)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Stable                      
    
     MT-Level                     Async-Signal-Safe           
    


SEE ALSO
     pooladm(1M),  psrset(1M),  zoneadm(1M),   processorinfo(2),
     psetbind(2),          psetcreate(2),         psetinfo(2),
     psetgetloadavg(3C), attributes(5)










































SunOS 5.11          Last change: 28 Jun 2004                    2



OpenSolaris man pages main menu

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