PLMID(3PROC) | Process Control Library Functions | PLMID(3PROC) |
Plmid
— get the
link-map identifier of an address
Process Control Library (libproc, -lproc)
#include
<libproc.h>
int
Plmid
(struct ps_prochandle *P,
uintptr_t addr, Lmid_t
*lmidp);
The
Plmid
()
function attempts to determine the link-map identifier that corresponds to
the address addr in the process
P. If addr does not correspond
to an address from an object mapped in by the run-time link editor, such as
anonymous mapping created with mmap(2),
then there will be no corresponding link-map identifier.
lmidp must be a
non-NULL
pointer that will be filled in with the
link-map identifier when it is successfully determined by the run-time
link-editor.
Upon successful completion, the Plmid
()
function returns
0 and updates
lmidp with the link-map identifier of
addr. Otherwise,
-1 is returned
to indicate that the link-map identifier could not be determined.
See LOCKING in libproc(3LIB).
May 11, 2016 | OmniOS |