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_GETREGS 3PROC
22 .Nd get and set thread registers
28 .Fa "struct ps_prochandle *P"
30 .Fa "prfpregset_t *fpregs"
34 .Fa "struct ps_prochandle *P"
36 .Fa "const prfpregset_t fpregs"
40 .Fa "struct ps_prochandle *P"
42 .Fa "prpregset_t *gregs"
46 .Fa "struct ps_prochandle *P"
48 .Fa "const prpregset_t gregs"
57 functions allow one to get and set the general purpose and floating
58 point registers from the thread
65 function updates the structure pointed to by
67 with the state and values of the floating point registers of the thread
73 function updates the floating point registers of the thread specified by
75 to the register state contained in
80 function updates the structure pointed to by
82 with the state and values of the general purpose registers of the thread
88 function updates the general purpose registers of the thread specified
91 to the register state contained in
94 Processes must be stopped before obtaining the register state of
96 Processes may be stopped with
98 The structures used for registers are described in
100 and their defintions may be found in
102 The definitions of these structures varies based on the architecture of
103 the system and the running process.
105 One may not set the register values of a process that is not an active
106 process, e.g. a process handle that refers to a file or a core file.
108 Upon successful completion, the
116 and obtain or set the register state.
121 is set to indicate the error, and the register state is not updated nor
122 are the data pointers changed.
124 For a full list of possible errors also see the
140 is not currently stopped.
142 There is no thread in
147 .Sh INTERFACE STABILITY