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
25 .Ft "const rd_loadobj_t *"
27 .Fa "struct ps_prochandle *P"
30 .Ft "const rd_loadobj_t *"
32 .Fa "struct ps_prochandle *P"
34 .Fa "const char *name"
36 .Ft "const rd_loadobj_t *"
38 .Fa "struct ps_prochandle *P"
39 .Fa "const char *name"
43 .Fn Paddr_to_loadobj ,
44 .Fn Plmid_to_loadobj ,
47 functions lookup loaded object information from the process handle
49 This information is provided by the run-time link-editor,
51 and provides information about the loaded object such as the link-map
52 identifier, the TLS module ID, and the address of various sections.
54 The pointer to the data returned by the library will only be valid for
60 will invalidate the data.
64 function attempts to find the loaded object information, if any, that exists for
67 Not all address correspond to memory regions that were loaded by the
69 For example, if a user creates a region of anonymous memory through the
71 function, then it will not have any corresponding loaded module.
75 function looks up the object named
77 and returns the corresponding loaded object information.
78 Two special values may be used for name.
81 refers to the executable object itself and the macro
82 .Dv PR_OBJ_LDSO refers to the object ld.so.1 .
86 function is similar to
87 .Fn Pname_to_loadobj .
88 It allows the use of a link-map identifier,
90 which constricts the search of the object named with
95 may be passed to indicate that every link-map should be searched, which
96 is equivalent in behavior to the
100 Upon successful completion, the
101 .Fn Paddr_to_loadobj ,
102 .Fn Plmid_to_loadobj ,
105 functions return a pointer to the corresponding loadable object
107 Otherwise, if none exists then
110 .Sh INTERFACE STABILITY
119 .Xr librtld_db 3LIB ,