Lines Matching refs:current_pcb

157         let current_pcb = ProcessManager::current_pcb();  in fork()  localVariable
161 let name = current_pcb.basic().name().to_string(); in fork()
168 Self::copy_process(&current_pcb, &pcb, args, current_trapframe).map_err(|e| { in fork()
171 current_pcb.pid(), in fork()
206 *new_pcb.flags.get_mut() = ProcessManager::current_pcb().flags().clone(); in copy_flags()
228 current_pcb: &Arc<ProcessControlBlock>, in copy_mm()
231 let old_address_space = current_pcb.basic().user_vm().unwrap_or_else(|| { in copy_mm()
234 current_pcb.pid() in copy_mm()
245 current_pcb.pid(), new_pcb.pid(), e in copy_mm()
255 current_pcb: &Arc<ProcessControlBlock>, in copy_files()
260 let new_fd_table = current_pcb.basic().fd_table().unwrap().read().clone(); in copy_files()
267 .set_fd_table(current_pcb.basic().fd_table().clone()); in copy_files()
276 current_pcb: &Arc<ProcessControlBlock>, in copy_sighand()
286 current_pcb.sig_struct_irqsave().handlers.clone(); in copy_sighand()
307 current_pcb: &Arc<ProcessControlBlock>, in copy_process()
361 let guard = current_pcb.arch_info_irqsave(); in copy_process()
366 if current_pcb.flags().contains(ProcessFlags::KTHREAD) { in copy_process()
396 current_pcb.pid(), pcb.pid(), e in copy_process()
401 Self::copy_mm(&clone_flags, &current_pcb, &pcb).unwrap_or_else(|e| { in copy_process()
404 current_pcb.pid(), pcb.pid(), e in copy_process()
409 Self::copy_files(&clone_flags, &current_pcb, &pcb).unwrap_or_else(|e| { in copy_process()
412 current_pcb.pid(), pcb.pid(), e in copy_process()
417 Self::copy_sighand(&clone_flags, &current_pcb, &pcb).map_err(|e| { in copy_process()
420 current_pcb.pid(), pcb.pid(), e in copy_process()
425 Self::copy_thread(&current_pcb, &pcb, clone_args,&current_trapframe).unwrap_or_else(|e| { in copy_process()
428 current_pcb.pid(), pcb.pid(), e in copy_process()
435 current_pcb.thread.read_irqsave().group_leader.clone(); in copy_process()
438 (*ptr).tgid = current_pcb.tgid; in copy_process()
451 current_pcb.real_parent_pcb.read_irqsave().clone(); in copy_process()
456 let leader = current_pcb.thread.read_irqsave().group_leader(); in copy_process()
460 current_pcb.pid() in copy_process()
471 *pcb.real_parent_pcb.write_irqsave() = Arc::downgrade(&current_pcb); in copy_process()