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.
19 .Nd obtain the process address space file descriptor
25 .Fa "struct ps_prochandle *P"
30 funtion returns a file descriptor that allows direct access to the
31 address space of the process handle
33 A defined file descriptor is provided when using the
36 .Xr Pgrab_file 3PROC ,
40 Note that the address space may be different in each of these cases and doesn't
41 necessarily correspond to the /proc
43 file, except for live processes.
44 Other means of obtaining a
46 process handle may not define a file descriptor that contains the
49 The returned file descriptor must not be closed and is only valid for
50 as long as the corresponding process handle
55 the file descriptor is invalidated.
57 Upon successful completion, the
59 function returns a valid file descriptor.
60 Otherwise, if none exists, then
63 .Sh INTERFACE STABILITY
74 .Xr Pgrab_core 3PROC ,
75 .Xr Pgrab_file 3PROC ,