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_LOADOBJ 3PROC
18 .Nm Paddr_to_loadobj ,
19 .Nm Plmid_to_loadobj ,
21 .Nd lookup loaded object information
26 .Ft "const rd_loadobj_t *"
28 .Fa "struct ps_prochandle *P"
31 .Ft "const rd_loadobj_t *"
33 .Fa "struct ps_prochandle *P"
35 .Fa "const char *name"
37 .Ft "const rd_loadobj_t *"
39 .Fa "struct ps_prochandle *P"
40 .Fa "const char *name"
44 .Fn Paddr_to_loadobj ,
45 .Fn Plmid_to_loadobj ,
48 functions lookup loaded object information from the process handle
50 This information is provided by the run-time link-editor,
52 and provides information about the loaded object such as the link-map
53 identifier, the TLS module ID, and the address of various sections.
55 The pointer to the data returned by the library will only be valid for
61 will invalidate the data.
65 function attempts to find the loaded object information, if any, that exists for
68 Not all address correspond to memory regions that were loaded by the
70 For example, if a user creates a region of anonymous memory through the
72 function, then it will not have any corresponding loaded module.
76 function looks up the object named
78 and returns the corresponding loaded object information.
79 Two special values may be used for name.
82 refers to the executable object itself and the macro
83 .Dv PR_OBJ_LDSO refers to the object ld.so.1 .
87 function is similar to
88 .Fn Pname_to_loadobj .
89 It allows the use of a link-map identifier,
91 which constricts the search of the object named with
96 may be passed to indicate that every link-map should be searched, which
97 is equivalent in behavior to the
101 Upon successful completion, the
102 .Fn Paddr_to_loadobj ,
103 .Fn Plmid_to_loadobj ,
106 functions return a pointer to the corresponding loadable object
108 Otherwise, if none exists then
111 .Sh INTERFACE STABILITY
120 .Xr librtld_db 3LIB ,