Lines Matching refs:wsp
38 sp_walk_init(mdb_walk_state_t *wsp) in sp_walk_init() argument
40 if (wsp->walk_addr == NULL && in sp_walk_init()
41 mdb_readvar(&wsp->walk_addr, "practive") == -1) { in sp_walk_init()
46 wsp->walk_data = mdb_alloc(sizeof (proc_t), UM_SLEEP); in sp_walk_init()
55 sp_walk_step(mdb_walk_state_t *wsp) in sp_walk_step() argument
59 if (wsp->walk_addr == NULL) in sp_walk_step()
62 if (mdb_vread(wsp->walk_data, sizeof (proc_t), wsp->walk_addr) == -1) { in sp_walk_step()
63 mdb_warn("failed to read proc at %p", wsp->walk_addr); in sp_walk_step()
67 status = wsp->walk_callback(wsp->walk_addr, wsp->walk_data, in sp_walk_step()
68 wsp->walk_cbdata); in sp_walk_step()
70 wsp->walk_addr = (uintptr_t)(((proc_t *)wsp->walk_data)->p_next); in sp_walk_step()
79 sp_walk_fini(mdb_walk_state_t *wsp) in sp_walk_fini() argument
81 mdb_free(wsp->walk_data, sizeof (proc_t)); in sp_walk_fini()