Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ././../../../../../../usr/man/man2/pset_bind.2
Real path: /usr/share/man/man2/pset_bind.2
Zurück
'\" te .\" Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved. .TH pset_bind 2 "20 Jan 2015" "Oracle Solaris 11.4" "System Calls" .SH NAME pset_bind \- bind LWPs to a pset .SH SYNOPSIS .LP .nf #include <sys/pset.h> \fBint\fR \fBpset_bind\fR(\fBpsetid_t\fR \fIpset\fR, \fBidtype_t\fR \fIidtype\fR, \fBid_t\fR \fIid\fR, \fBpsetid_t *\fR\fIopset\fR); .fi .SH DESCRIPTION .sp .LP The \fBpset_bind()\fR function binds the \fBLWP\fR or set of \fBLWPs\fR specified by \fIidtype\fR and \fIid\fR to the \fIpset\fR specified by \fIpset\fR. If \fIopset\fR is not \fINULL\fR, \fBpset_bind()\fR sets the \fBpsetid_t\fR variable pointed to by \fIopset\fR to the previous \fIpset\fR binding of one of the specified \fBLWP\fR, or to \fBPS_NONE\fR if the selected \fBLWP\fR was not bound. .sp .LP If \fIidtype\fR is \fBP_PID\fR, the binding affects all \fBLWP\fRs of the process with process \fBID\fR (PID) \fIid\fR. .sp .LP If \fIidtype\fR is \fBP_LWPID\fR, the binding affects the \fBLWP\fR of the current process with \fBLWP ID\fR \fIid\fR. .sp .LP If \fIidtype\fR is \fBP_TASKID\fR, the binding affects all LWPs of all processes with task ID \fIid\fR. .sp .LP If \fIidtype\fR is \fBP_PROJID\fR, the binding affects all LWPs of all processes with project ID \fIid\fR. .sp .LP If \fIidtype\fR is \fBP_ZONEID\fR, the binding affects all LWPs of all processes with zone ID \fIid\fR. .sp .LP If \fIidtype\fR is \fBP_CTID\fR, the binding affects all LWPs of all processes with process contract ID \fIid\fR. .sp .LP If \fIid\fR is \fBP_MYID\fR, the specified LWP, process, task, project, zone, or process contract is the current one. .sp .LP If \fIpset\fR is \fBPS_NONE\fR, the \fIpset\fR bindings of the specified LWPs are cleared. .sp .LP If \fIpset\fR is \fBPS_QUERY\fR, the \fIpset\fR bindings are not changed. .sp .LP If \fIpset\fR is \fBPS_MYID\fR, the specified LWPs are bound to the same \fIpset\fR as the caller. If the caller is not bound to a \fIpset\fR, the \fIpset\fR bindings are cleared. .sp .LP The {\fBPRIV_SYS_RES_CONFIG\fR} privilege must be asserted in the effective set of the calling process or \fIpset\fR must be \fBPS_QUERY\fR. .sp .LP LWPs that have been bound to a processor with \fBprocessor_bind\fR(2) may also be bound to a \fIpset\fR if the processor is part of the \fIpset\fR. If this occurs, the binding to the processor remains in effect. If the processor binding is later removed, the \fIpset\fR binding becomes effective. .sp .LP \fIPset\fR bindings are inherited across \fBfork\fR(2) and \fBexec\fR(2). .SH RETURN VALUES .sp .LP Upon successful completion, 0 is returned. Otherwise, \(mi1 is returned and \fBerrno\fR is set to indicate the error. .SH ERRORS .sp .LP The \fBpset_bind()\fR function will fail if: .sp .ne 2 .mk .na \fB\fBEBUSY\fR\fR .ad .RS 11n .rt One of the \fBLWP\fRs is bound to a processor, and the specified \fIpset\fR does not include that processor, or a process belongs to a different zone than processes currently bound to the \fIpset\fR. .RE .sp .ne 2 .mk .na \fB\fBEFAULT\fR\fR .ad .RS 11n .rt The location pointed to by \fIopset\fR was not \fINULL\fR and not writable by the user. .RE .sp .ne 2 .mk .na \fB\fBEINVAL\fR\fR .ad .RS 11n .rt An invalid \fIpset\fR \fBID\fR was specified; or \fIidtype\fR was not \fBP_PID\fR, \fBP_LWPID\fR, \fBP_PROJID\fR, \fBP_TASKID\fR, \fBP_ZONEID\fR, or \fBP_CTID\fR: or the zone of the target threads or processes is bound to a pool. See \fBpooladm\fR(8). .RE .sp .ne 2 .mk .na \fB\fBENOTSUP\fR\fR .ad .RS 11n .rt The target \fIpset\fR is a \fIpset\fR created by the resource pools facility. See \fBpooladm\fR(8). Processes can be bound to regular pools using the \fBpoolbind\fR(8) utility or the \fBpool_set_binding\fR(3POOL) function. .sp Binding a system process to a \fIpset\fR is not supported. .RE .sp .ne 2 .mk .na \fB\fBEPERM\fR\fR .ad .RS 11n .rt The {\fBPRIV_PROC_OWNER\fR} is not asserted in the effective set of the calling process and either the real or effective user ID of the calling process does not match the real or effective user \fBID\fR of one of the LWPs being bound, or the \fIpset\fR from which one or more of the LWPs are being unbound has the \fBPSET_NOESCAPE\fR attribute set and {\fBPRIV_SYS_RES_CONFIG\fR) is not asserted in the effective set of the calling process. See \fBpset_setattr\fR(2) for more information about \fIpset\fR attributes. .RE .sp .ne 2 .mk .na \fB\fBESRCH\fR\fR .ad .RS 11n .rt No processes, \fBLWP\fRs, or tasks were found to match the criteria specified by \fIidtype\fR and \fIid\fR. .RE .sp .ne 2 .mk .na \fB\fBEINTR\fR\fR .ad .RS 11n .rt The process received a signal while attempting the operation. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(7) for descriptions of the following attributes: .sp .TS tab( ) box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Interface Stability Committed _ MT-Level Async-Signal-Safe .TE .sp .SH SEE ALSO .sp .LP \fBexec\fR(2), \fBfork\fR(2), \fBprocessor_bind\fR(2), \fBpset_create\fR(2), \fBpset_info\fR(2), \fBpset_setattr\fR(2), \fBpset_getloadavg\fR(3C), \fBpool_set_binding\fR(3POOL), \fBpool_set_status\fR(3POOL), \fBprocess\fR(5), \fBproject\fR(5), \fBattributes\fR(7), \fBprivileges\fR(7), \fBpbind\fR(8), \fBpooladm\fR(8), \fBpoolbind\fR(8), \fBpsrset\fR(8)