Lines Matching refs:lhwp
74 lh_walk_t *lhwp;
83 lhwp = mdb_alloc(sizeof (lh_walk_t), UM_SLEEP|UM_GC);
84 lhwp->hash = (struct ldi_handle **)(uintptr_t)sym.st_value;
85 lhwp->index = 0;
88 if ((mdb_vread(&lhwp->lhp, sizeof (struct ldi_handle *),
89 (uintptr_t)lhwp->hash)) == -1) {
90 mdb_warn("couldn't read ldi handle hash at %p", lhwp->hash);
94 wsp->walk_addr = (uintptr_t)lhwp->lhp;
95 wsp->walk_data = lhwp;
103 lh_walk_t *lhwp = (lh_walk_t *)wsp->walk_data;
110 if (++(lhwp->index) >= LH_HASH_SZ)
114 if ((mdb_vread(&lhwp->lhp, sizeof (struct ldi_handle *),
115 (uintptr_t)(lhwp->hash + lhwp->index))) == -1) {
117 (uintptr_t)lhwp->hash + lhwp->index);
121 wsp->walk_addr = (uintptr_t)lhwp->lhp;
130 if (mdb_vread(&lhwp->buf, sizeof (struct ldi_handle),
135 wsp->walk_addr = (uintptr_t)lhwp->buf.lh_next;