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 PRESET_MAPS 3PROC
1643051d27SRobert Mustacchi.Os
1743051d27SRobert Mustacchi.Sh NAME
1843051d27SRobert Mustacchi.Nm Preset_maps
1943051d27SRobert Mustacchi.Nd reset memory mapping data after exec
20ab618543SJohn Levon.Sh LIBRARY
2143051d27SRobert Mustacchi.Lb libproc
22ab618543SJohn Levon.Sh SYNOPSIS
2343051d27SRobert Mustacchi.In libproc.h
2443051d27SRobert Mustacchi.Ft void
2543051d27SRobert Mustacchi.Fo Preset_maps
2643051d27SRobert Mustacchi.Fa "struct ps_prochandle *P"
2743051d27SRobert Mustacchi.Fc
2843051d27SRobert Mustacchi.Sh DESCRIPTION
2943051d27SRobert MustacchiThe
3043051d27SRobert Mustacchi.Fn Preset_maps
3143051d27SRobert Mustacchifunction resets all of the mapping data, cached symbol tables, debug
3243051d27SRobert Mustacchiinformation, CTF, and more in the process handle
3343051d27SRobert Mustacchi.Fa P .
3443051d27SRobert MustacchiThe map information will rebuild itself on the execution of another
3543051d27SRobert Mustacchi.Xr libproc 3LIB
3643051d27SRobert Mustacchifunction that requires the information.
3743051d27SRobert MustacchiThis function should be called any time after a process handle performs
3843051d27SRobert Mustacchian
3943051d27SRobert Mustacchi.Xr exec 2 .
4043051d27SRobert MustacchiAs such, this interface is only relevant to the manipulation of live
4143051d27SRobert Mustacchiprocesses and not core files or ELF files.
4243051d27SRobert MustacchiFor more information, see the
4343051d27SRobert Mustacchi.Sy PROGRAMMING NOTES
4443051d27SRobert Mustacchisection in
4543051d27SRobert Mustacchi.Xr libproc 3LIB .
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 exec 2 ,
5543051d27SRobert Mustacchi.Xr libproc 3LIB ,
56*bbf21555SRichard Lowe.Xr proc 5
57