mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 18:03:25 +00:00
Rename get_user_space
to user_space
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
e6c613f538
commit
96de617ad9
@ -8,9 +8,7 @@ use crate::{
|
||||
};
|
||||
|
||||
pub fn sys_chdir(path_ptr: Vaddr, ctx: &Context) -> Result<SyscallReturn> {
|
||||
let path = ctx
|
||||
.get_user_space()
|
||||
.read_cstring(path_ptr, MAX_FILENAME_LEN)?;
|
||||
let path = ctx.user_space().read_cstring(path_ptr, MAX_FILENAME_LEN)?;
|
||||
debug!("path = {:?}", path);
|
||||
|
||||
let mut fs = ctx.process.fs().write();
|
||||
|
Reference in New Issue
Block a user