pset_setattr(2) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

pset_setattr(2)

pset_setattr(2)                  System Calls                  pset_setattr(2)



NAME
       pset_setattr, pset_getattr - set or get processor set attributes

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 speci‐
       fied by pset. The bitmask of attributes to be set or cleared is  speci‐
       fied by attr.


       The pset_getattr function returns attributes of the processor set spec‐
       ified by pset. On successful return, attr will contain the  bitmask  of
       attributes for the specified processor 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 the {PRIV_SYS_RES_CONFIG} privilege
                        to be asserted in the effective  set  of  the  calling
                        process.



       The  binding  of  LWPs and processes to processor sets is controlled by
       pset_bind(2). When the PSET_NOESCAPE attribute is  cleared,  a  process
       calling  pset_bind()  can  clear  the  processor 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 requires the
       {PRIV_SYS_RES_CONFIG} privilege to be asserted in the effective set  of
       the calling process.

RETURN VALUES
       Upon  successful completion, these functions return 0. Otherwise, -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.

                  The  caller  is  in a non-global zone, the pools facility is
                  active, and the processor is not  a  member  of  the  zone's
                  pool's processor set.


       ENOTSUP    The   pools   facility   is   active.   See  pooladm(8)  and
                  pool_set_status(3POOL) for information  about  enabling  and
                  disabling the pools facility.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       tab()  box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
       TRIBUTE VALUE _ Interface  StabilityCommitted  _  MT-LevelAsync-Signal-
       Safe


SEE ALSO
       pset_bind(2),    pool_set_status(3POOL),   attributes(7),   pooladm(8),
       pooladm(8), psrset(8), zoneadm(8)



Oracle Solaris 11.4               28 Jun 2004                  pset_setattr(2)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3