Searched refs:lwd (Results 1 – 3 of 3) sorted by relevance
/titanic_41/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | list.c | 62 list_walk_data_t *lwd; in list_walk_init_range() local 82 lwd = mdb_alloc(sizeof (list_walk_data_t), UM_SLEEP); in list_walk_init_range() 84 lwd->lw_size = list.list_size; in list_walk_init_range() 85 lwd->lw_offset = list.list_offset; in list_walk_init_range() 86 lwd->lw_obj = mdb_alloc(list.list_size, UM_SLEEP); in list_walk_init_range() 87 lwd->lw_head = (uintptr_t)&((list_t *)wsp->walk_addr)->list_head; in list_walk_init_range() 88 lwd->lw_end = (end == NULL ? NULL : end + lwd->lw_offset); in list_walk_init_range() 89 lwd->lw_elem_name = element_name; in list_walk_init_range() 90 lwd->lw_elem_check = element_check; in list_walk_init_range() 91 lwd->lw_elem_check_arg = arg; in list_walk_init_range() [all …]
|
H A D | lgrp.c | 427 lgrp_walk_data_t *lwd; in lgrp_walk_init() local 430 lwd = mdb_zalloc(sizeof (lgrp_walk_data_t), UM_SLEEP | UM_GC); in lgrp_walk_init() 432 if (mdb_readsym(&lwd->lwd_nlgrps, sizeof (int), in lgrp_walk_init() 438 if (lwd->lwd_nlgrps < 0) { in lgrp_walk_init() 439 mdb_warn("lgrp_alloc_max of bounds (%d)\n", lwd->lwd_nlgrps); in lgrp_walk_init() 443 lwd->lwd_nlgrps++; in lgrp_walk_init() 451 if (sym.st_size < lwd->lwd_nlgrps * sizeof (lgrp_t *)) { in lgrp_walk_init() 456 lwd->lwd_lgrp_tbl = mdb_alloc(sym.st_size, UM_SLEEP | UM_GC); in lgrp_walk_init() 458 if (mdb_readsym(lwd->lwd_lgrp_tbl, lwd->lwd_nlgrps * sizeof (lgrp_t *), in lgrp_walk_init() 465 wsp->walk_data = lwd; in lgrp_walk_init() [all …]
|
/titanic_41/usr/src/cmd/mdb/common/modules/zfs/ |
H A D | zfs.c | 2195 txg_list_walk_data_t *lwd; in txg_list_walk_init_common() local 2199 lwd = mdb_alloc(sizeof (txg_list_walk_data_t), UM_SLEEP | UM_GC); in txg_list_walk_init_common() 2206 lwd->lw_head[i] = (uintptr_t)list.tl_head[i]; in txg_list_walk_init_common() 2207 lwd->lw_offset = list.tl_offset; in txg_list_walk_init_common() 2208 lwd->lw_obj = mdb_alloc(lwd->lw_offset + sizeof (txg_node_t), in txg_list_walk_init_common() 2210 lwd->lw_txgoff = txg; in txg_list_walk_init_common() 2211 lwd->lw_maxoff = maxoff; in txg_list_walk_init_common() 2213 wsp->walk_addr = lwd->lw_head[lwd->lw_txgoff]; in txg_list_walk_init_common() 2214 wsp->walk_data = lwd; in txg_list_walk_init_common() 2252 txg_list_walk_data_t *lwd = wsp->walk_data; in txg_list_walk_step() local [all …]
|