1 PLMID(3PROC) Process Control Library Functions PLMID(3PROC) 2 3 NAME 4 Plmid - get the link-map identifier of an address 5 6 LIBRARY 7 Process Control Library (libproc, -lproc) 8 9 SYNOPSIS 10 #include <libproc.h> 11 12 int 13 Plmid(struct ps_prochandle *P, uintptr_t addr, Lmid_t *lmidp); 14 15 DESCRIPTION 16 The Plmid() function attempts to determine the link-map identifier that 17 corresponds to the address addr in the process P. If addr does not 18 correspond to an address from an object mapped in by the run-time link 19 editor, such as anonymous mapping created with mmap(2), then there will 20 be no corresponding link-map identifier. 21 22 lmidp must be a non-NULL pointer that will be filled in with the link-map 23 identifier when it is successfully determined by the run-time link- 24 editor. 25 26 RETURN VALUES 27 Upon successful completion, the Plmid() function returns 0 and updates 28 lmidp with the link-map identifier of addr. Otherwise, -1 is returned to 29 indicate that the link-map identifier could not be determined. 30 31 INTERFACE STABILITY 32 Uncommitted 33 34 MT-LEVEL 35 See LOCKING in libproc(3LIB). 36 37 SEE ALSO 38 libproc(3LIB), proc(4) 39 40 illumos May 11, 2016 illumos