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
28 .Fa "struct ps_prochandle *P"
33 .Fa "struct ps_prochandle *P"
38 .Fa "struct ps_prochandle *P"
40 .Fa "const char *name"
44 .Fa "struct ps_prochandle *P"
45 .Fa "const char *name"
50 .Fn Paddr_to_text_map ,
54 functions lookup memory map information in the process handle
58 structure provides information such as the size, offset, and object of
59 the mapping and is defined in
62 The pointer to the data returned by the library will only be valid for
68 will invalidate the data.
72 function attempts to find the mapping information corresponding to the
78 function is similar to the
80 function; however, it only returns successfully if the specified address
81 corresponds to a text mapping as identified by the run-time link-editor.
82 One use of this is to ensure that a mapping is actually a text-mapping
83 before inserting a breakpoint in it.
87 function looks up the object named
89 and returns the corresponding mapping information.
90 Two special values may be used for name.
93 refers to the executable object itself and the macro
94 .Dv PR_OBJ_LDSO refers to the object ld.so.1 .
98 function is similar to
100 It allows passing a link-map identifier,
102 which constricts the search of the object named with
107 may be passed to indicate that every link-map should be searched, which
108 is equivalent in behavior to the
112 Upon successful completion, the
114 .Fn Paddr_to_text_map ,
118 functions return a pointer to the corresponding mapping information.
122 .Sh INTERFACE STABILITY