xref: /illumos-gate/usr/src/man/man3proc/Lprochandle.3proc (revision b31ca922c7346747131aed07c0c171ec2f573aac)
143051d27SRobert Mustacchi.\"
243051d27SRobert Mustacchi.\" This file and its contents are supplied under the terms of the
343051d27SRobert Mustacchi.\" Common Development and Distribution License ("CDDL"), version 1.0.
443051d27SRobert Mustacchi.\" You may only use this file in accordance with the terms of version
543051d27SRobert Mustacchi.\" 1.0 of the CDDL.
643051d27SRobert Mustacchi.\"
743051d27SRobert Mustacchi.\" A full copy of the text of the CDDL should have accompanied this
843051d27SRobert Mustacchi.\" source.  A copy of the CDDL is also available via the Internet at
943051d27SRobert Mustacchi.\" http://www.illumos.org/license/CDDL.
1043051d27SRobert Mustacchi.\"
1143051d27SRobert Mustacchi.\"
1243051d27SRobert Mustacchi.\" Copyright 2015 Joyent, Inc.
1343051d27SRobert Mustacchi.\"
1443051d27SRobert Mustacchi.Dd May 11, 2016
1543051d27SRobert Mustacchi.Dt LPROCHANDLE 3PROC
1643051d27SRobert Mustacchi.Os
1743051d27SRobert Mustacchi.Sh NAME
1843051d27SRobert Mustacchi.Nm Lprochandle
1943051d27SRobert Mustacchi.Nd get process control handle from thread control handle
2043051d27SRobert Mustacchi.Sh SYNOPSIS
2143051d27SRobert Mustacchi.Lb libproc
2243051d27SRobert Mustacchi.In libproc.h
2343051d27SRobert Mustacchi.Ft "struct ps_prochandle *"
2443051d27SRobert Mustacchi.Fo Lprochandle
2543051d27SRobert Mustacchi.Fa "struct ps_lwphandle *L"
2643051d27SRobert Mustacchi.Fc
2743051d27SRobert Mustacchi.Sh DESCRIPTION
2843051d27SRobert MustacchiThe
2943051d27SRobert Mustacchi.Fn Lprochandle
3043051d27SRobert Mustacchifunction returns the process handle to which the thread handle
3143051d27SRobert Mustacchi.Fa L
3272d3dbb9SYuri Pankovbelongs.
3372d3dbb9SYuri PankovThis proccess handle may be used with other
34*b31ca922SChris Fraire.Xr libproc 3LIB
3543051d27SRobert Mustacchifunctions just as if
3672d3dbb9SYuri Pankov.Xr Pgrab 3PROC was called.
3772d3dbb9SYuri PankovThe returned handle is valid even if
3843051d27SRobert Mustacchi.Xr Lfree 3PROC
3943051d27SRobert Mustacchiis called on
4043051d27SRobert Mustacchi.Fa L .
4143051d27SRobert Mustacchi.Sh RETURN VALUES
4243051d27SRobert MustacchiUpon successful completion, the
4343051d27SRobert Mustacchi.Fn Lprochandle
4443051d27SRobert Mustacchifunction returns a pointer to process handle.
4543051d27SRobert Mustacchi.Sh INTERFACE STABILITY
4643051d27SRobert Mustacchi.Sy Uncommitted
4743051d27SRobert Mustacchi.Sh MT-LEVEL
4843051d27SRobert MustacchiSee
4943051d27SRobert Mustacchi.Sy LOCKING
5043051d27SRobert Mustacchiin
5143051d27SRobert Mustacchi.Xr libproc 3LIB .
5243051d27SRobert Mustacchi.Sh SEE ALSO
5343051d27SRobert Mustacchi.Xr libproc 3LIB ,
5443051d27SRobert Mustacchi.Xr Lfree 3PROC ,
5543051d27SRobert Mustacchi.Xr Pgrab 3PROC ,
5643051d27SRobert Mustacchi.Xr Prelease 3PROC
57