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
26 .Fa "struct ps_prochandle *P"
28 .Fa "prxregset_t *xregs"
32 .Fa "struct ps_prochandle *P"
34 .Fa "const prxregset_t *xregs"
41 functions get and set the extended register state of the thread
46 The extended register state is defined by the architecture.
47 These registers may refer to optional registers that have become common on the
48 platform, but are not part of the standard ABI and thus not covered by
50 .Xr Plwp_getregs 3PROC
52 .Xr Plwp_getfpregs 3PROC .
56 function gets the extended register state information and places it into
60 function sets the extended register state information in
62 for the process handle
65 Processes must be stopped prior to obtaining the register state of
67 Processes may be stopped with
72 structure is described in
75 One may not set the register values of a process that is not an active
76 process, e.g. a process handle that refers to a file or a core file.
78 Upon successful completion, the
84 and get or set the register state.
89 is set to indicate the error.
91 For a full list of possible errors see the
100 function will fail if:
105 does not have any extended register state information.
109 refers to a live process and it is not stopped.
113 refers to a live process and there is no thread with id
118 refers to a core file and there is no thread with id
126 functions are only available on
129 .Sh INTERFACE STABILITY
138 .Xr Plwp_getfpregs 3PROC ,
139 .Xr Plwp_getregs 3PROC ,
140 .Xr Plwp_setfpregs 3PROC ,
141 .Xr Plwp_setregs 3PROC ,