PLMID(3PROC) Process Control Library Functions PLMID(3PROC)

NAME


Plmid - get the link-map identifier of an address

LIBRARY


Process Control Library (libproc, -lproc)

SYNOPSIS


#include <libproc.h>

int
Plmid(struct ps_prochandle *P, uintptr_t addr, Lmid_t *lmidp);

DESCRIPTION


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.

RETURN VALUES


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.

INTERFACE STABILITY


Uncommitted

MT-LEVEL
See LOCKING in libproc(3LIB).

SEE ALSO


libproc(3LIB), proc(4)

illumos May 11, 2016 illumos