|PLWP_GETASRS(3PROC)||Process Control Library Functions||PLWP_GETASRS(3PROC)|
*P, lwpid_t lwpid, asrset_t
*P, lwpid_t lwpid, const
Plwp_setasrs() functions get and set the ancillary thread-specific register set of the thread lwpid in the process handle P.
The ancillary state registers are only present on 64-bit SPARCv9 processes. They contain information that is specific to the platform and are not included in the information obtained through functions such as Plwp_getregs(3PROC), Plwp_getfpregs(3PROC), and Plwp_getxregs(3PROC).
Plwp_getasrs() function reads the
ancillary registers into asrs, while the
Plwp_setasrs() sets the thread's ancillary registers
to the values provided by asrs.
Processes should be stopped prior to obtaining the register state of individual threads. Processes may be stopped with Pstop(3PROC).
The asrset_t structure is described in proc(5).
One may not set the register values of a process that is not an active process, e.g. a process handle that refers to a file or a core file.
Plwp_setasrs() functions return 0 and get or set the register state. Otherwise, -1 is returned and errno is set to indicate the error.
Plwp_setasrs() function will fail if:
Plwp_setasrs() functions are only available on 64-bit SPARCv9 platforms.
|May 11, 2016||OmniOS|