Lines Matching refs:new_proc
101 ProcDesc* new_proc = (ProcDesc*)qemu_malloc(sizeof(ProcDesc));
102 if (new_proc == NULL) {
106 QLIST_INIT(&new_proc->threads);
107 allocmap_init(&new_proc->alloc_map);
108 mmrangemap_init(&new_proc->mmrange_map);
109 new_proc->pid = pid;
110 new_proc->parent_pid = parent_pid;
111 new_proc->image_path = NULL;
112 new_proc->flags = 0;
124 qemu_free(new_proc);
130 failed = allocmap_copy(&new_proc->alloc_map, &parent->alloc_map,
136 allocmap_empty(&new_proc->alloc_map);
137 qemu_free(new_proc);
142 failed = mmrangemap_copy(&new_proc->mmrange_map, &parent->mmrange_map);
146 mmrangemap_empty(&new_proc->mmrange_map);
147 allocmap_empty(&new_proc->alloc_map);
148 qemu_free(new_proc);
154 if(create_new_thread(new_proc, pid) == NULL) {
155 mmrangemap_empty(&new_proc->mmrange_map);
156 allocmap_empty(&new_proc->alloc_map);
157 qemu_free(new_proc);
162 QLIST_INSERT_HEAD(&proc_list, new_proc, global_entry);
164 return new_proc;
469 ProcDesc* new_proc;
492 new_proc = create_new_process(new_pid, parent_proc->pid);
493 if (new_proc == NULL) {
499 procdesc_set_image_path(new_proc, parent_proc->image_path, 0);