Home
last modified time | relevance | path

Searched refs:address_space (Results 1 – 13 of 13) sorted by relevance

/DragonOS-0.1.8/kernel/src/mm/
Dsyscall.rs72 let address_space = AddressSpace::current()?; in brk() localVariable
73 let mut address_space = address_space.write(); in brk() localVariable
75 if new_addr < address_space.brk_start || new_addr >= MMArch::USER_END_VADDR { in brk()
76 return Ok(address_space.brk); in brk()
78 if new_addr == address_space.brk { in brk()
79 return Ok(address_space.brk); in brk()
83 address_space in brk()
87 return Ok(address_space.sbrk(0).unwrap()); in brk()
94 let address_space = AddressSpace::current()?; in sbrk() localVariable
95 let mut address_space = address_space.write(); in sbrk() localVariable
[all …]
Dmod.rs51 pub unsafe fn set_INITIAL_PROCESS_ADDRESS_SPACE(address_space: Arc<AddressSpace>) { in set_INITIAL_PROCESS_ADDRESS_SPACE()
59 __INITIAL_PROCESS_ADDRESS_SPACE = Some(address_space); in set_INITIAL_PROCESS_ADDRESS_SPACE()
Ducontext.rs68 .address_space() in current()
/DragonOS-0.1.8/kernel/src/arch/x86_64/
Dsyscall.rs192 let old_address_space = current_pcb().address_space(); in tmp_rs_execve()
198 let address_space = AddressSpace::new(true).expect("Failed to create new address space"); in tmp_rs_execve() localVariable
200 current_pcb().set_address_space(address_space.clone()); in tmp_rs_execve()
203 AddressSpace::is_current(&address_space), in tmp_rs_execve()
209 unsafe { address_space.read().user_mapper.utable.make_current() }; in tmp_rs_execve()
214 let mut param = ExecParam::new(path.as_str(), address_space.clone(), ExecParamFlags::EXEC); in tmp_rs_execve()
229 address_space in tmp_rs_execve()
Dcontext.rs19 let new_address_space = next.address_space().unwrap_or_else(|| { in switch_process()
/DragonOS-0.1.8/kernel/src/process/
Dprocess.rs319 let p = self.address_space as *const AddressSpace; in drop_address_space()
325 self.address_space = null_mut(); in drop_address_space()
332 pub unsafe fn set_address_space(&mut self, address_space: Arc<AddressSpace>) { in set_address_space()
333 assert!(self.address_space.is_null(), "Address space already set"); in set_address_space()
334 self.address_space = Arc::into_raw(address_space) as *mut c_void; in set_address_space()
338 pub fn address_space(&self) -> Option<Arc<AddressSpace>> { in address_space() method
339 let ptr = self.address_space as *const AddressSpace; in address_space()
Dmod.rs27 current_pcb().address_space = null_mut(); in process_init()
Dproc-types.h139 void *address_space; member
Dfork.rs153 .address_space() in copy_mm()
Dfork.c189 pcb->address_space = NULL; in process_copy_mm()
Dprocess.c61 ….signal = &INITIAL_SIGNALS, .sighand = &INITIAL_SIGHAND, .address_space = NULL …
/DragonOS-0.1.8/kernel/src/smp/
Dsmp.c177 current_pcb->address_space = NULL; in smp_ap_start()
/DragonOS-0.1.8/kernel/src/filesystem/procfs/
Dmod.rs172 let binding = current_pcb().address_space().unwrap(); in open_status()