Lines Matching defs:inst
556 struct fsck_instance *inst;
558 for (inst = instance_list; inst; inst = inst->next) {
559 if (inst->flags & FLAG_DONE)
561 if (inst->flags & FLAG_PROGRESS)
577 struct fsck_instance *inst, *p;
580 inst = malloc(sizeof(struct fsck_instance));
581 if (!inst)
583 memset(inst, 0, sizeof(struct fsck_instance));
598 inst->flags |= FLAG_PROGRESS;
636 inst->pid = pid;
637 inst->prog = prog;
638 inst->type = string_copy(type);
639 inst->device = string_copy(device);
640 inst->base_device = base_device(device);
641 inst->start_time = time(0);
642 inst->next = NULL;
650 p->next = inst;
652 instance_list = inst;
662 struct fsck_instance *inst;
665 for (inst = instance_list; inst; inst = inst->next) {
666 if (inst->flags & FLAG_DONE)
668 kill(inst->pid, signum);
682 struct fsck_instance *inst, *inst2, *prev;
689 inst = instance_list;
692 while (inst->next && (random() & 1)) {
693 prev = inst;
694 inst = inst->next;
697 inst->exit_status = 0;
703 * (inst and prev are thought to be uninitialized variables)
705 inst = prev = NULL;
725 for (prev = 0, inst = instance_list;
726 inst;
727 prev = inst, inst = inst->next) {
728 if (inst->pid == pid)
731 } while (!inst);
742 inst->prog, inst->device, sig);
747 inst->prog, inst->device, status);
750 inst->exit_status = status;
751 if (progress && (inst->flags & FLAG_PROGRESS) &&
778 prev->next = inst->next;
780 instance_list = inst->next;
783 inst->device, inst->exit_status);
785 return inst;
796 struct fsck_instance *inst;
800 while ((inst = wait_one(wait_flags))) {
801 global_status |= inst->exit_status;
802 free_instance(inst);
1024 struct fsck_instance *inst;
1045 for (inst = instance_list; inst; inst = inst->next) {
1046 if (!inst->base_device || !strcmp(base, inst->base_device)) {
1378 struct fsck_instance *inst;
1380 inst = wait_one(0);
1381 if (inst) {
1382 status |= inst->exit_status;
1383 free_instance(inst);