2 .\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH PSET_SETATTR 2 "Jun 28, 2004"
8 pset_setattr, pset_getattr \- set or get processor set attributes
14 \fBint\fR \fBpset_setattr\fR(\fBpsetid_t\fR \fIpset\fR, \fBuint_t\fR \fIattr\fR);
19 \fBint\fR \fBpset_getattr\fR(\fBpsetid_t\fR \fIpset\fR, \fBuint_t *\fR\fIattr\fR);
25 The \fBpset_setattr()\fR function sets attributes of the processor set
26 specified by \fIpset\fR. The bitmask of attributes to be set or cleared is
27 specified by \fIattr\fR.
30 The pset_getattr function returns attributes of the processor set specified by
31 \fIpset\fR. On successful return, \fIattr\fR will contain the bitmask of
32 attributes for the specified processor set.
35 The value of the \fIattr\fR argument is the bitwise inclusive-OR of these
36 attributes, defined in <\fBsys/pset.h\fR>:
40 \fB\fBPSET_NOESCAPE\fR\fR
43 Unbinding of LWPs from the processor set with this attribute requires the
44 {\fBPRIV_SYS_RES_CONFIG\fR} privilege to be asserted in the effective set of
50 The binding of LWPs and processes to processor sets is controlled by
51 \fBpset_bind\fR(2). When the \fBPSET_NOESCAPE\fR attribute is cleared, a
52 process calling \fBpset_bind()\fR can clear the processor set binding of any
53 LWP whose real or effective user ID matches its own real of effective user ID.
54 Setting \fBPSET_NOESCAPE\fR attribute forces \fBpset_bind()\fR to requires the
55 {\fBPRIV_SYS_RES_CONFIG\fR} privilege to be asserted in the effective set of
60 Upon successful completion, these functions return 0. Otherwise, -1 is returned
61 and \fBerrno\fR is set to indicate the error.
65 These function will fail if:
72 The location pointed to by \fIattr\fR was not writable by the user.
81 An invalid processor set ID was specified.
83 The caller is in a non-global zone, the pools facility is active, and the
84 processor is not a member of the zone's pool's processor set.
93 The pools facility is active. See \fBpooladm\fR(1M) and
94 \fBpool_set_status\fR(3POOL) for information about enabling and disabling the
101 See \fBattributes\fR(5) for descriptions of the following attributes:
109 ATTRIBUTE TYPE ATTRIBUTE VALUE
111 Interface Stability Stable
113 MT-Level Async-Signal-Safe
119 \fBpooladm\fR(1M), \fBpooladm\fR(1M), \fBpsrset\fR(1M), \fBzoneadm\fR(1M),
120 \fBpset_bind\fR(2), \fBpool_set_status\fR(3POOL), \fBattributes\fR(5)