diff options
Diffstat (limited to 'usr/src/man/man3proc/ps_lgetregs.3proc')
-rw-r--r-- | usr/src/man/man3proc/ps_lgetregs.3proc | 142 |
1 files changed, 142 insertions, 0 deletions
diff --git a/usr/src/man/man3proc/ps_lgetregs.3proc b/usr/src/man/man3proc/ps_lgetregs.3proc new file mode 100644 index 0000000000..d0ea42ec39 --- /dev/null +++ b/usr/src/man/man3proc/ps_lgetregs.3proc @@ -0,0 +1,142 @@ +'\" te +.\" Copyright (c) 1998 Sun Microsystems, Inc. All Rights Reserved +.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. +.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. +.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] +.TH ps_lgetregs 3PROC "30 Jan 1998" "SunOS 5.11" "Process Control Library Functions" +.SH NAME +ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs, ps_lgetxregsize, +ps_lgetxregs, ps_lsetxregs \- routines that access the target process register +in libthread_db +.SH SYNOPSIS +.LP +.nf +#include <proc_service.h> + +\fB ps_err_e\fR \fBps_lgetregs\fR(\fBstruct ps_prochandle *\fR\fIph\fR, \fBlwpid_t\fR \fIlid\fR, + \fBprgregset_t\fR \fIgregset\fR); +.fi + +.LP +.nf +\fBps_err_e\fR \fBps_lsetregs\fR(\fBstruct ps_prochandle *\fR\fIph\fR, \fBlwpid_t\fR \fIlid\fR, + \fBstatic prgregset_t\fR \fIgregset\fR); +.fi + +.LP +.nf +\fBps_err_e\fR \fBps_lgetfpregs\fR(\fBstruct ps_prochandle *\fR\fIph\fR, \fBlwpid_t\fR \fIlid\fR, + \fBprfpregset_t *\fR\fIfpregs\fR); +.fi + +.LP +.nf +\fBps_err_e\fR \fBps_lsetfpregs\fR(\fBstruct ps_prochandle *\fR\fIph\fR, \fBlwpid_t\fR \fIlid\fR, + \fBstatic prfpregset_t *\fR\fIfpregs\fR); +.fi + +.LP +.nf +\fBps_err_e\fR \fBps_lgetxregsize\fR(\fBstruct ps_prochandle *\fR\fIph\fR, \fBlwpid_t\fR \fIlid\fR, + \fBint *\fR\fIxregsize\fR); +.fi + +.LP +.nf +\fBps_err_e\fR \fBps_lgetxregs\fR(\fBstruct ps_prochandle *\fR\fIph\fR, \fBlwpid_t\fR \fIlid\fR, + \fBcaddr_t\fR \fIxregset\fR); +.fi + +.LP +.nf +\fBps_err_e\fR \fBps_lsetxregs\fR(\fBstruct ps_prochandle *\fR\fIph\fR, \fBlwpid_t\fR \fIlid\fR, + \fBcaddr_t\fR \fIxregset\fR); +.fi + +.SH DESCRIPTION +.sp +.LP +\fBps_lgetregs()\fR, \fBps_lsetregs()\fR, \fBps_lgetfpregs()\fR, +\fBps_lsetfpregs()\fR, \fBps_lgetxregsize()\fR, \fBps_lgetxregs()\fR, +\fBps_lsetxregs()\fR read and write register sets from lightweight processes +(\fBLWP\fRs) within the target process identified by \fIph\fR. +\fBps_lgetregs()\fR gets the general registers of the \fBLWP\fR identified by +\fIlid\fR, and \fBps_lsetregs()\fR sets them. \fBps_lgetfpregs()\fR gets the +\fBLWP\fR's floating point register set, while \fBps_lsetfpregs()\fR sets it. +.SS "SPARC Only" +.sp +.LP +\fBps_lgetxregsize()\fR,\fBps_lgetxregs()\fR, and\fBps_lsetxregs()\fR are +SPARC-specific. They do not need to be defined by a controlling process on +non-SPARC architecture. \fBps_lgetxregsize()\fR returns in +\fB*\fR\fIxregsize\fR the size of the architecture-dependent extra state +registers. \fBps_lgetxregs()\fR gets the extra state registers, and +\fBps_lsetxregs()\fR sets them. +.SH RETURN VALUES +.sp +.ne 2 +.mk +.na +\fB\fBPS_OK\fR \fR +.ad +.RS 16n +.rt +The call returned successfully. +.RE + +.sp +.ne 2 +.mk +.na +\fB\fBPS_NOFPREGS\fR \fR +.ad +.RS 16n +.rt +Floating point registers are neither available for this architecture nor for +this process. +.RE + +.sp +.ne 2 +.mk +.na +\fB\fBPS_NOXREGS\fR \fR +.ad +.RS 16n +.rt +Extra state registers are not available on this architecture. +.RE + +.sp +.ne 2 +.mk +.na +\fB\fBPS_ERR\fR \fR +.ad +.RS 16n +.rt +The function did not return successfully. +.RE + +.SH ATTRIBUTES +.sp +.LP +See \fBattributes\fR(5) for description of the following attributes: +.sp + +.sp +.TS +tab() box; +cw(2.75i) |cw(2.75i) +lw(2.75i) |lw(2.75i) +. +ATTRIBUTE TYPEATTRIBUTE VALUE +_ +MT LevelSafe +.TE + +.SH SEE ALSO +.sp +.LP +\fBlibc_db\fR(3LIB), \fBproc_service\fR(3PROC), \fBattributes\fR(5), +\fBthreads\fR(5) |