Lines Matching refs:state
28 "[+NAME?vmstate - list the calling process vmalloc region state]"
30 "calling process \bvmalloc\b(3) state for all regions.]"
69 register State_t* state = (State_t*)handle;
73 *pn = state->vs.extent;
75 *pn = integralof(state->vm);
77 *pn = state->vs.n_seg;
79 *pn = state->vs.s_busy;
81 *pn = state->vs.n_busy;
83 *pn = state->vs.m_busy;
85 *pn = state->vs.s_free;
87 *pn = state->vs.n_free;
89 *pn = state->vs.m_free;
91 *ps = (char*)state->format;
103 State_t* state = (State_t*)handle;
106 if (vm != state->vm)
108 state->vm = vm;
109 if (state->regions < elementsof(state->region))
110 state->region[state->regions++] = vm;
119 State_t state;
121 memset(&state, 0, sizeof(state));
128 state.format = opt_info.arg;
142 if (!state.format)
143 state.format = FORMAT;
149 vmwalk(NiL, visit, &state);
152 * now we can compute and list the state of each region
155 for (i = 0; i < state.regions; i++)
157 state.vm = state.region[i];
158 vmstat(state.vm, &state.vs);
159 sfkeyprintf(sfstdout, &state, state.format, key, NiL);