Lines Matching defs:wsp
59 head_list_walk_init(mdb_walk_state_t *wsp)
62 if (wsp->walk_addr == NULL) {
67 wsp->walk_data = mdb_alloc(sizeof (struct list_head), UM_SLEEP);
69 if (mdb_vread(wsp->walk_data, sizeof (struct list_head),
70 wsp->walk_addr) == -1) {
71 mdb_warn("failed to read list head at %p", wsp->walk_addr);
75 wsp->walk_arg = (void *)wsp->walk_addr;
77 wsp->walk_addr =
78 (uintptr_t)(((struct list_head *)wsp->walk_data)->next);
88 head_list_walk_step(mdb_walk_state_t *wsp)
92 if (wsp->walk_addr == NULL) {
97 if (mdb_vread(wsp->walk_data, sizeof (struct list_head),
98 wsp->walk_addr) == -1) {
99 mdb_warn("failed to read list at %p", wsp->walk_addr);
103 if ((void *)wsp->walk_addr == wsp->walk_arg) {
107 status = wsp->walk_callback(wsp->walk_addr, wsp->walk_data,
108 wsp->walk_cbdata);
110 wsp->walk_addr =
111 (uintptr_t)(((struct list_head *)wsp->walk_data)->next);
120 head_list_walk_fini(mdb_walk_state_t *wsp)
122 mdb_free(wsp->walk_data, sizeof (proc_t));