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.
15 .Dt PADDR_TO_MAP 3PROC
19 .Nm Paddr_to_text_map ,
22 .Nd lookup memory map information
29 .Fa "struct ps_prochandle *P"
34 .Fa "struct ps_prochandle *P"
39 .Fa "struct ps_prochandle *P"
41 .Fa "const char *name"
45 .Fa "struct ps_prochandle *P"
46 .Fa "const char *name"
51 .Fn Paddr_to_text_map ,
55 functions lookup memory map information in the process handle
59 structure provides information such as the size, offset, and object of
60 the mapping and is defined in
63 The pointer to the data returned by the library will only be valid for
69 will invalidate the data.
73 function attempts to find the mapping information corresponding to the
79 function is similar to the
81 function; however, it only returns successfully if the specified address
82 corresponds to a text mapping as identified by the run-time link-editor.
83 One use of this is to ensure that a mapping is actually a text-mapping
84 before inserting a breakpoint in it.
88 function looks up the object named
90 and returns the corresponding mapping information.
91 Two special values may be used for name.
94 refers to the executable object itself and the macro
95 .Dv PR_OBJ_LDSO refers to the object ld.so.1 .
99 function is similar to
101 It allows passing a link-map identifier,
103 which constricts the search of the object named with
108 may be passed to indicate that every link-map should be searched, which
109 is equivalent in behavior to the
113 Upon successful completion, the
115 .Fn Paddr_to_text_map ,
119 functions return a pointer to the corresponding mapping information.
123 .Sh INTERFACE STABILITY