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_GETXREGS 3PROC
20 .Nd get and set extended register state
27 .Fa "struct ps_prochandle *P"
29 .Fa "prxregset_t *xregs"
33 .Fa "struct ps_prochandle *P"
35 .Fa "const prxregset_t *xregs"
42 functions get and set the extended register state of the thread
47 The extended register state is defined by the architecture.
48 These registers may refer to optional registers that have become common on the
49 platform, but are not part of the standard ABI and thus not covered by
51 .Xr Plwp_getregs 3PROC
53 .Xr Plwp_getfpregs 3PROC .
57 function gets the extended register state information and places it into
61 function sets the extended register state information in
63 for the process handle
66 Processes must be stopped prior to obtaining the register state of
68 Processes may be stopped with
73 structure is described in
76 One may not set the register values of a process that is not an active
77 process, e.g. a process handle that refers to a file or a core file.
79 Upon successful completion, the
85 and get or set the register state.
90 is set to indicate the error.
92 For a full list of possible errors see the
101 function will fail if:
106 does not have any extended register state information.
110 refers to a live process and it is not stopped.
114 refers to a live process and there is no thread with id
119 refers to a core file and there is no thread with id
127 functions are only available on
130 .Sh INTERFACE STABILITY
139 .Xr Plwp_getfpregs 3PROC ,
140 .Xr Plwp_getregs 3PROC ,
141 .Xr Plwp_setfpregs 3PROC ,
142 .Xr Plwp_setregs 3PROC ,