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
29 .Fa "struct ps_prochandle *P"
31 .Fa "prfpregset_t *fpregs"
35 .Fa "struct ps_prochandle *P"
37 .Fa "const prfpregset_t fpregs"
41 .Fa "struct ps_prochandle *P"
43 .Fa "prpregset_t *gregs"
47 .Fa "struct ps_prochandle *P"
49 .Fa "const prpregset_t gregs"
58 functions allow one to get and set the general purpose and floating
59 point registers from the thread
66 function updates the structure pointed to by
68 with the state and values of the floating point registers of the thread
74 function updates the floating point registers of the thread specified by
76 to the register state contained in
81 function updates the structure pointed to by
83 with the state and values of the general purpose registers of the thread
89 function updates the general purpose registers of the thread specified
92 to the register state contained in
95 Processes must be stopped before obtaining the register state of
97 Processes may be stopped with
99 The structures used for registers are described in
101 and their defintions may be found in
103 The definitions of these structures varies based on the architecture of
104 the system and the running process.
106 One may not set the register values of a process that is not an active
107 process, e.g. a process handle that refers to a file or a core file.
109 Upon successful completion, the
117 and obtain or set the register state.
122 is set to indicate the error, and the register state is not updated nor
123 are the data pointers changed.
125 For a full list of possible errors also see the
141 is not currently stopped.
143 There is no thread in
148 .Sh INTERFACE STABILITY