pset_getattr(2)




NAME

     pset_setattr, pset_getattr - set or get processor set attri-
     butes


SYNOPSIS

     #include <sys/pset.h>

     int pset_setattr(psetid_t pset, uint_t attr);

     int pset_getattr(psetid_t pset, uint_t *attr);


DESCRIPTION

     The pset_setattr() function sets attributes of the processor
     set  specified by pset.  The bitmask of attributes to be set
     or cleared is specified by attr.

     The pset_getattr function returns attributes of the  proces-
     sor  set  specified by pset. On successful return, attr will
     contain the bitmask of attributes for the specified  proces-
     sor set.

     The value of the attr argument is the  bitwise  inclusive-OR
     of these attributes, defined in <sys/pset.h>:

     PSET_NOESCAPE
           Unbinding of LWPs from the  processor  set  with  this
           attribute requires superuser privileges.

     The  binding of LWPs and processes to processor sets is con-
     trolled  by  pset_bind(2).  When  PSET_NOESCAPE attribute is
     cleared, a process calling pset_bind() can clear the proces-
     sor  set  binding of any LWP whose real or effective user ID
     matches  its  own  real  of  effective  user  ID.    Setting
     PSET_NOESCAPE   attribute   forces  pset_bind()  to  require
     superuser privileges for such an operation.


RETURN VALUES

     Upon successful completion, these functions return 0. Other-
     wise, -1 is returned and errno is set to indicate the error.


ERRORS

     These function will fail if:

     EFAULT
           The location pointed to by attr was  not  writable  by
           the user.

     EINVAL
           An invalid processor set ID was specified.


ATTRIBUTES


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

     ____________________________________________________________
    |       ATTRIBUTE TYPE        |       ATTRIBUTE VALUE       |
    |_____________________________|_____________________________|
    | Interface Stability         | Stable                      |
    |_____________________________|_____________________________|
    | MT-Level                    | Async-Signal-Safe           |
    |_____________________________|_____________________________|


SEE ALSO

     psrset(1M), pset_bind(2), attributes(5)


Man(1) output converted with man2html