HP-UX Reference (11i v2 07/12) - 2 System Calls (vol 5)
p
pset_getattr(2) pset_getattr(2)
A user with the PSET privilege or the pset owner may change the value of the
PSET_ATTR_PERM
attribute.
PSET_ATTR_IOINTR
A value of PSET_ATTRVAL_ALLOW
indicates that processors in this processor set are
configured to receive external interrupts. It may be assigned a value of
PSET_ATTRVAL_DISALLOW
to disable all processors in the processor set from receiving and
processing external I/O interrupts. Not all platforms may support this feature. By default, I/O
interrupts are enabled on all processors. The feature may be useful for some realtime applica-
tions where unpredictable interrupt handling overhead may adversely impact the application’s
response time requirements.
Only a user with the
PSET privilege may change this attribute.
PSET_ATTR_NONEMPTY
Indicates the behavior when a request to destroy a non-empty processor set is made through the
pset_destroy()
function. Possible values are:
PSET_ATTRVAL_DFLTPSET
Reassign all processors in the processor set pset to the system default processor set.
Migrate all threads and processes bound to this processor set to the system default
processor set. This is the default value for this attribute.
PSET_ATTRVAL_FAIL
Make the request fail with an [EBUSY] error if there are threads or processes bound
to the processor set or if there are processors assigned to the processor set.
PSET_ATTRVAL_FAILBUSY
Make the request fail with an [EBUSY] error if there are active threads or processes
bound to the processor set. Otherwise, perform the operation by reassigning the pro-
cessors in the pset to the system default processor set.
A user with the PSET privilege or a user with WRITE permissions may change the value of this
attribute.
PSET_ATTR_EMPTY
Indicates the behavior when a request to bind a process or a thread to an empty processor set is
made through the pset_bind() function. Possible values are:
PSET_ATTRVAL_ALLOW
Go through with the request. However, the affected threads will not be scheduled to
execute until a processor is assigned to the empty processor set.
PSET_ATTRVAL_FAIL
Reject the request with an [EINVAL] error. This is the default value for this attri-
bute.
A user with the PSET privilege or a user with WRITE permissions may change the value of this
attribute.
PSET_ATTR_LASTSPU
Indicates the behavior when a request to remove the last processor from a processor set is made
through the pset_assign() function, or through the processor deallocation functionality.
Possible values are:
PSET_ATTRVAL_FAIL
Make the request fail if there are active threads and processes assigned to the proces-
sor set.
PSET_ATTRVAL_DFLTPSET
Assign the processor to the specified processor set, and migrate all threads and
processes to the system default processor set PS_DEFAULT . This is the default value
for this attribute.
A user with the PSET privilege or a user with WRITE permissions may change the value of the
PSET_ATTR_LASTSPU attribute.
The default value for any attribute can be assigned using the PSET_ATTRVAL_DEFAULT value in the
pset_setattr() function.
272 Hewlett-Packard Company − 2 − HP-UX 11i Version 2: December 2007 Update