MCPcopy Create free account
hub / github.com/Starry-OS/StarryOS / get_as_mut

Method get_as_mut

api/src/mm.rs:130–133  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

128 }
129
130 pub fn get_as_mut(self) -> AxResult<&'static mut T> {
131 check_region(self.address(), Layout::new::<T>(), Self::ACCESS_FLAGS)?;
132 Ok(unsafe { &mut *self.0 })
133 }
134
135 pub fn get_as_mut_slice(self, len: usize) -> AxResult<&'static mut [T]> {
136 check_region(

Callers 12

ioctlMethod · 0.80
sys_accept4Function · 0.80
sys_socketpairFunction · 0.80
sys_getsocknameFunction · 0.80
sys_getpeernameFunction · 0.80
sys_getsockoptFunction · 0.80
getFunction · 0.80
recv_implFunction · 0.80
sys_recvmsgFunction · 0.80
pushMethod · 0.80
sys_shmctlFunction · 0.80
sys_fcntlFunction · 0.80

Calls 2

check_regionFunction · 0.85
addressMethod · 0.80

Tested by

no test coverage detected