HP-UX Reference (11i v2 03/08) - 2 System Calls (vol 5)

p
pset_getattr(2) pset_getattr(2)
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 attri-
bute.
A superuser, a PRIV_PSET privilege user, 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.
RETURN VALUE
The functions return zero on successful completion. Otherwise, -1 is returned and errno is set to indicate
the error.
ERRORS
pset_getattr()
or pset_setattr()
fails if one or more of the following is true:
[EFAULT] The memory location pointed to by val is not writable by the user for
pset_getattr()
.
[EINVAL] The specified processor set pset , the attribute type , or the attribute val is invalid.
[EINVAL] The memory location pointed to by val is NULL for
pset_getattr().
[ENOSYS] The processor set functionality is not supported by the underlying HP-UX version.
[ENOTSUP]
The requested attribute value is not supported for the
pset_setattr()
function.
[EPERM] The user does not have the necessary permissions to query or change the processor set
attributes.
AUTHOR
get_getattr and set_getattr were developed by HP.
SEE ALSO
psrset(1M), pset_assign(2), pset_bind(2), pset_create(2), pset_ctl(2), pset_destroy(2), privgrp(4).
Section 2234 Hewlett-Packard Company 3 HP-UX 11i Version 2: August 2003