Lines Matching refs:ulnw

248 	uutil_list_node_walk_t *ulnw;  in uutil_list_node_walk_init()  local
263 ulnw = mdb_alloc(sizeof (uutil_list_node_walk_t), UM_SLEEP); in uutil_list_node_walk_init()
265 ulnw->ulnw_offset = ul.ul_offset; in uutil_list_node_walk_init()
266 ulnw->ulnw_final = wsp->walk_addr + offsetof(uu_list_t, ul_null_node); in uutil_list_node_walk_init()
267 ulnw->ulnw_current = (uintptr_t)ul.ul_null_node.uln_next; in uutil_list_node_walk_init()
268 ulnw->ulnw_buf = mdb_alloc(ulp.ulp_objsize, UM_SLEEP); in uutil_list_node_walk_init()
269 ulnw->ulnw_bufsz = ulp.ulp_objsize; in uutil_list_node_walk_init()
271 wsp->walk_data = ulnw; in uutil_list_node_walk_init()
280 uutil_list_node_walk_t *ulnw = wsp->walk_data; in uutil_list_node_walk_step() local
284 if (ulnw->ulnw_current == ulnw->ulnw_final) in uutil_list_node_walk_step()
287 if (mdb_vread(&uln, sizeof (uu_list_node_impl_t), ulnw->ulnw_current) == in uutil_list_node_walk_step()
289 mdb_warn("failed to read uu_list_node %x", ulnw->ulnw_current); in uutil_list_node_walk_step()
293 diff = ulnw->ulnw_current - ulnw->ulnw_offset; in uutil_list_node_walk_step()
295 if (mdb_vread(ulnw->ulnw_buf, ulnw->ulnw_bufsz, diff) == -1) { in uutil_list_node_walk_step()
302 status = wsp->walk_callback(diff, ulnw->ulnw_buf, wsp->walk_cbdata); in uutil_list_node_walk_step()
304 ulnw->ulnw_current = (uintptr_t)uln.uln_next; in uutil_list_node_walk_step()
312 uutil_list_node_walk_t *ulnw = wsp->walk_data; in uutil_list_node_walk_fini() local
314 mdb_free(ulnw->ulnw_buf, ulnw->ulnw_bufsz); in uutil_list_node_walk_fini()
315 mdb_free(ulnw, sizeof (uutil_list_node_walk_t)); in uutil_list_node_walk_fini()