Lines Matching refs:inst
419 struct fsck_instance *inst;
421 for (inst = instance_list; inst; inst = inst->next) {
422 if (inst->flags & FLAG_DONE)
424 if (inst->flags & FLAG_PROGRESS)
439 struct fsck_instance *inst, *p;
442 inst = malloc(sizeof(struct fsck_instance));
443 if (!inst)
445 memset(inst, 0, sizeof(struct fsck_instance));
460 inst->flags |= FLAG_PROGRESS;
470 free(inst);
487 free(inst);
494 free(inst);
501 inst->pid = pid;
502 inst->prog = string_copy(prog);
503 inst->type = string_copy(type);
504 inst->device = string_copy(device);
505 inst->base_device = base_device(device);
506 inst->start_time = time(0);
507 inst->next = NULL;
515 p->next = inst;
517 instance_list = inst;
527 struct fsck_instance *inst;
530 for (inst = instance_list; inst; inst = inst->next) {
531 if (inst->flags & FLAG_DONE)
533 kill(inst->pid, signum);
547 struct fsck_instance *inst, *inst2, *prev;
554 inst = instance_list;
557 while (inst->next && (random() & 1)) {
558 prev = inst;
559 inst = inst->next;
562 inst->exit_status = 0;
568 * (inst and prev are thought to be uninitialized variables)
570 inst = prev = NULL;
592 for (prev = 0, inst = instance_list;
593 inst;
594 prev = inst, inst = inst->next) {
595 if (inst->pid == pid)
598 } while (!inst);
609 inst->prog, inst->device, sig);
614 inst->prog, inst->device, status);
617 inst->exit_status = status;
618 if (progress && (inst->flags & FLAG_PROGRESS) &&
645 prev->next = inst->next;
647 instance_list = inst->next;
650 inst->device, inst->exit_status);
652 return inst;
663 struct fsck_instance *inst;
667 while ((inst = wait_one(wait_flags))) {
668 global_status |= inst->exit_status;
669 free_instance(inst);
914 struct fsck_instance *inst;
935 for (inst = instance_list; inst; inst = inst->next) {
936 if (!inst->base_device || !strcmp(base, inst->base_device)) {
1316 struct fsck_instance *inst;
1318 inst = wait_one(0);
1319 if (inst) {
1320 status |= inst->exit_status;
1321 free_instance(inst);