Lines Matching defs:stack_idx
1192 int i, stack_idx, error, stacks_to_allocate;
1217 for (stack_idx = 0; stack_idx < stacks_to_allocate;
1218 stack_idx++)
1219 st[stack_idx] = stack_create(M_WAITOK);
1224 for (stack_idx = 0; stack_idx < stacks_to_allocate;
1225 stack_idx++)
1226 td_infos[stack_idx] = sbuf_new(NULL, NULL,
1240 stack_idx = 0;
1244 if (stack_idx >= stacks_to_allocate)
1248 (void)stack_save_td(st[stack_idx], td);
1250 sbuf_printf(td_infos[stack_idx], "%d: %s %p",
1253 ++stack_idx;
1260 for (i = 0; i < stack_idx; i++) {
1268 *count_stacks_printed = stack_idx;
1274 for (stack_idx = 0; stack_idx < stacks_to_allocate;
1275 stack_idx++)
1276 stack_destroy(st[stack_idx]);
1277 for (stack_idx = 0; stack_idx < stacks_to_allocate;
1278 stack_idx++)
1279 sbuf_delete(td_infos[stack_idx]);