1 PLMID(3PROC) Process Control Library Functions PLMID(3PROC)
2
3 NAME
4 Plmid - get the link-map identifier of an address
5
6 SYNOPSIS
7 Process Control Library (libproc, -lproc)
8 #include <libproc.h>
9
10 int
11 Plmid(struct ps_prochandle *P, uintptr_t addr, Lmid_t *lmidp);
12
13 DESCRIPTION
14 The Plmid() function attempts to determine the link-map identifier that
15 corresponds to the address addr in the process P. If addr does not
16 correspond to an address from an object mapped in by the run-time link
17 editor, such as anonymous mapping created with mmap(2), then there will
18 be no corresponding link-map identifier.
19
20 lmidp must be a non-NULL pointer that will be filled in with the link-map
21 identifier when it is successfully determined by the run-time link-
22 editor.
23
24 RETURN VALUES
25 Upon successful completion, the Plmid() function returns 0 and updates
26 lmidp with the link-map identifier of addr. Otherwise, -1 is returned to
27 indicate that the link-map identifier could not be determined.
|
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.
|