prxmap_t
prxmap_t xmap;
look_xmap_nopgsz(void *data, const prxmap_t *pmp, const char *object_name,
typedef int proc_xmap_f(void *, const prxmap_t *, const char *, int, int);
static int look_smap(void *, const prxmap_t *, const char *, int, int);
static int look_xmap(void *, const prxmap_t *, const char *, int, int);
static int look_xmap_nopgsz(void *, const prxmap_t *, const char *,
static int gather_xmap(void *, const prxmap_t *, const char *, int, int);
gather_xmap(void *ignored, const prxmap_t *xmap, const char *objname,
prxmap_t md_xmap;
prxmap_t *prmapp, *pmp;
nmap = st.st_size / sizeof (prxmap_t);
prmapp = malloc((nmap + 1) * sizeof (prxmap_t));
if ((n = pread(mapfd, prmapp, (nmap + 1) * sizeof (prxmap_t), 0)) < 0) {
if (nmap < n / sizeof (prxmap_t)) {
nmap = n / sizeof (prxmap_t);
CTASSERT(offsetof(prmap_t, pr_vaddr) == offsetof(prxmap_t, pr_vaddr));
CTASSERT(offsetof(prmap_t, pr_size) == offsetof(prxmap_t, pr_size));
CTASSERT(offsetof(prmap_t, pr_mapname) == offsetof(prxmap_t, pr_mapname));
CTASSERT(offsetof(prmap_t, pr_mflags) == offsetof(prxmap_t, pr_mflags));
CTASSERT(offsetof(prmap_t, pr_shmid) == offsetof(prxmap_t, pr_shmid));
mapping_xname(const prxmap_t *pmp, boolean_t brief, char *buf, size_t bufsz)
pagesize(const prxmap_t *pmp)
look_smap(void *data, const prxmap_t *pmp, const char *object_name, int last,
look_xmap(void *data, const prxmap_t *pmp, const char *object_name, int last,
prxmap_t *xmap = &pcp->pr_xmap[i];
prxmap_t *xmap, int nxmap)
prxmap_t *xmap, int nxmap, void *naddr)
prxmap_t *pr_xmap; /* array containing per-segment information */
prxmap_t *mp;
PR_OBJSIZE(prxmap32_t, prxmap_t);