xref: /illumos-gate/usr/src/man/man3proc/Pcontent.3proc (revision bbf215553c7233fbab8a0afdf1fac74c44781867)
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.\"
14c72d9262SPeter Tribble.Dd November 8, 2020
1543051d27SRobert Mustacchi.Dt PCONTENT 3PROC
1643051d27SRobert Mustacchi.Os
1743051d27SRobert Mustacchi.Sh NAME
18c72d9262SPeter Tribble.Nm Pcontent
1943051d27SRobert Mustacchi.Nd obtain process content types available
20ab618543SJohn Levon.Sh LIBRARY
2143051d27SRobert Mustacchi.Lb libproc
22ab618543SJohn Levon.Sh SYNOPSIS
2343051d27SRobert Mustacchi.In libproc.h
2443051d27SRobert Mustacchi.Ft "core_content_t"
2543051d27SRobert Mustacchi.Fo Pcontent
2643051d27SRobert Mustacchi.Fa "struct ps_prochandle *P"
2743051d27SRobert Mustacchi.Fc
2843051d27SRobert Mustacchi.Sh DESCRIPTION
2943051d27SRobert MustacchiThe
3043051d27SRobert Mustacchi.Fn Pcontent
3143051d27SRobert Mustacchifunction describes information available from the process handle
3243051d27SRobert Mustacchi.Fa P .
3343051d27SRobert Mustacchi.Pp
3443051d27SRobert MustacchiDifferent types of process handles have different kinds of content
3572d3dbb9SYuri Pankovavailable to them.
3672d3dbb9SYuri PankovFor example, handles to active and running processes have more information
3772d3dbb9SYuri Pankovavailable than various core files, as the core file retains a subset of
3872d3dbb9SYuri Pankovinformation available in the running process.
3943051d27SRobert MustacchiHandles that refer to ELF objects, obtained through
4043051d27SRobert Mustacchi.Xr Pgrab_file 3PROC ,
4172d3dbb9SYuri Pankovwill not have information such as a stack available.
4272d3dbb9SYuri PankovThe content of core files is controlled by
43*bbf21555SRichard Lowe.Xr coreadm 8 .
4443051d27SRobert Mustacchi.Pp
4543051d27SRobert MustacchiThe symbols that may be returned are listed in the
4643051d27SRobert Mustacchi.Sy core_content_t
4743051d27SRobert Mustacchiheading in the
4843051d27SRobert Mustacchi.Sy TYPES
4943051d27SRobert Mustacchisection in
5043051d27SRobert Mustacchi.Xr libproc 3LIB .
5143051d27SRobert Mustacchi.Sh RETURN VALUES
5243051d27SRobert MustacchiUpon successful completion, the
5343051d27SRobert Mustacchi.Fn Pcontent
5472d3dbb9SYuri Pankovfunction returns the bitwise-inclusive-OR of content types.
5572d3dbb9SYuri PankovOtherwise,
5643051d27SRobert Mustacchi.Dv CC_CONTENT_INVALID
5743051d27SRobert Mustacchiis returned to indicate an error.
5843051d27SRobert Mustacchi.Sh INTERFACE STABILITY
5943051d27SRobert Mustacchi.Sy Uncommitted
6043051d27SRobert Mustacchi.Sh MT-LEVEL
6143051d27SRobert MustacchiSee
6243051d27SRobert Mustacchi.Sy LOCKING
6343051d27SRobert Mustacchiin
6443051d27SRobert Mustacchi.Xr libproc 3LIB .
6543051d27SRobert Mustacchi.Sh SEE ALSO
6643051d27SRobert Mustacchi.Xr libproc 3LIB ,
6743051d27SRobert Mustacchi.Xr Pcreate 3PROC ,
6843051d27SRobert Mustacchi.Xr Pgrab 3PROC ,
6943051d27SRobert Mustacchi.Xr Pgrab_core 3PROC ,
7043051d27SRobert Mustacchi.Xr Pgrab_file 3PROC ,
71*bbf21555SRichard Lowe.Xr proc 5
72