| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 2: System Calls Oracle Solaris 11 Information Library |
- set or get processor set attributes
#include <sys/pset.h>intpset_setattr(psetid_tpset,uint_tattr);
intpset_getattr(psetid_tpset,uint_t *attr);
Thepset_setattr() function sets attributes of the processor set specified bypset. The bitmask of attributes to be set or cleared is specifiedbyattr.
The pset_getattr function returns attributes of the processor set specified bypset.On successful return,attr will contain the bitmask of attributes for thespecified processor set.
The value of theattr argument is the bitwise inclusive-OR of theseattributes, defined in <sys/pset.h>:
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 bypset_bind(2). When thePSET_NOESCAPE attribute is cleared, a process callingpset_bind() canclear the processor set binding of any LWP whose real or effectiveuser ID matches its own real of effective user ID. SettingPSET_NOESCAPE attribute forcespset_bind() to requires the {PRIV_SYS_RES_CONFIG} privilege to be asserted inthe effective set of the calling process.
Upon successful completion, these functions return 0. Otherwise, -1 is returned anderrno is set to indicate the error.
These function will fail if:
The location pointed to byattr was not writable by the user.
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.
The pools facility is active. Seepooladm(1M) andpool_set_status(3POOL) for information about enabling and disabling the pools facility.
Seeattributes(5) for descriptions of the following attributes:
|
pooladm(1M),pooladm(1M),psrset(1M),zoneadm(1M),pset_bind(2),pool_set_status(3POOL),attributes(5)
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |