mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-21 00:06:34 +00:00
Rename get_user_space
to user_space
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
e6c613f538
commit
96de617ad9
@ -19,7 +19,7 @@ pub fn sys_timer_settime(
|
||||
return_errno_with_message!(Errno::EINVAL, "invalid pointer to new value");
|
||||
}
|
||||
|
||||
let user_space = ctx.get_user_space();
|
||||
let user_space = ctx.user_space();
|
||||
let new_itimerspec = user_space.read_val::<itimerspec_t>(new_itimerspec_addr)?;
|
||||
let interval = Duration::try_from(new_itimerspec.it_interval)?;
|
||||
let expire_time = Duration::try_from(new_itimerspec.it_value)?;
|
||||
@ -74,8 +74,7 @@ pub fn sys_timer_gettime(
|
||||
it_interval: interval,
|
||||
it_value: remain,
|
||||
};
|
||||
ctx.get_user_space()
|
||||
.write_val(itimerspec_addr, &itimerspec)?;
|
||||
ctx.user_space().write_val(itimerspec_addr, &itimerspec)?;
|
||||
|
||||
Ok(SyscallReturn::Return(0))
|
||||
}
|
||||
|
Reference in New Issue
Block a user