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.\" 14*a7d7cafeSRobert Mustacchi.Dd November 27, 2023 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 20*a7d7cafeSRobert Mustacchi.Sh LIBRARY 2143051d27SRobert Mustacchi.Lb libproc 22*a7d7cafeSRobert Mustacchi.Sh SYNOPSIS 2343051d27SRobert Mustacchi.In libproc.h 2443051d27SRobert Mustacchi.Ft "struct ps_prochandle *" 2543051d27SRobert Mustacchi.Fo Lprochandle 2643051d27SRobert Mustacchi.Fa "struct ps_lwphandle *L" 2743051d27SRobert Mustacchi.Fc 2843051d27SRobert Mustacchi.Sh DESCRIPTION 2943051d27SRobert MustacchiThe 3043051d27SRobert Mustacchi.Fn Lprochandle 3143051d27SRobert Mustacchifunction returns the process handle to which the thread handle 3243051d27SRobert Mustacchi.Fa L 3372d3dbb9SYuri Pankovbelongs. 34c5bab702SPeter TribbleThis process handle may be used with other 35b31ca922SChris Fraire.Xr libproc 3LIB 3643051d27SRobert Mustacchifunctions just as if 3772d3dbb9SYuri Pankov.Xr Pgrab 3PROC was called. 3872d3dbb9SYuri PankovThe returned handle is valid even if 3943051d27SRobert Mustacchi.Xr Lfree 3PROC 4043051d27SRobert Mustacchiis called on 4143051d27SRobert Mustacchi.Fa L . 4243051d27SRobert Mustacchi.Sh RETURN VALUES 4343051d27SRobert MustacchiUpon successful completion, the 4443051d27SRobert Mustacchi.Fn Lprochandle 4543051d27SRobert Mustacchifunction returns a pointer to process handle. 4643051d27SRobert Mustacchi.Sh INTERFACE STABILITY 4743051d27SRobert Mustacchi.Sy Uncommitted 4843051d27SRobert Mustacchi.Sh MT-LEVEL 4943051d27SRobert MustacchiSee 5043051d27SRobert Mustacchi.Sy LOCKING 5143051d27SRobert Mustacchiin 5243051d27SRobert Mustacchi.Xr libproc 3LIB . 5343051d27SRobert Mustacchi.Sh SEE ALSO 5443051d27SRobert Mustacchi.Xr libproc 3LIB , 5543051d27SRobert Mustacchi.Xr Lfree 3PROC , 5643051d27SRobert Mustacchi.Xr Pgrab 3PROC , 5743051d27SRobert Mustacchi.Xr Prelease 3PROC 58