2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2015 Joyent, Inc.
15 .Dt PLWP_GETASRS 3PROC
20 .Nd get and set SPARCv9 ancillary state registers
27 .Fa "struct ps_prochandle *P"
33 .Fa "struct ps_prochandle *P"
35 .Fa "const asrset_t asrs"
42 functions get and set the ancillary thread-specific register set of the
48 The ancillary state registers are only present on 64-bit
51 They contain information that is specific to the platform and are not included
52 in the information obtained through functions such as
53 .Xr Plwp_getregs 3PROC ,
54 .Xr Plwp_getfpregs 3PROC ,
56 .Xr Plwp_getxregs 3PROC .
60 function reads the ancillary registers into
64 sets the thread's ancillary registers to the values provided by
67 Processes should be stopped prior to obtaining the register state of
69 Processes may be stopped with
74 structure is described in
77 One may not set the register values of a process that is not an active
78 process, e.g. a process handle that refers to a file or a core file.
80 Upon successful completion, the
86 and get or set the register state.
91 is set to indicate the error.
93 For a full list of possible errors see the
102 function will fail if:
107 does not have any ancillary register state information.
111 refers to a live process and it is not stopped.
115 refers to a live process and there is no thread with id
117 or it is not a 64-bit SPARCv9 process.
121 refers to a core file and there is no thread with id
129 functions are only available on
133 .Sh INTERFACE STABILITY
142 .Xr Plwp_getfpregs 3PROC ,
143 .Xr Plwp_getregs 3PROC ,
144 .Xr Plwp_setregs 3PROC ,
145 .Xr Plwp_setregs 3PROC ,