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

Function vm_load_string

api/src/mm.rs:256–260  ·  view source on GitHub ↗
(ptr: *const c_char)

Source from the content-addressed store, hash-verified

254}
255
256pub fn vm_load_string(ptr: *const c_char) -> AxResult<String> {
257 #[allow(clippy::unnecessary_cast)]
258 let bytes = vm_load_until_nul(ptr as *const u8)?;
259 String::from_utf8(bytes).map_err(|_| AxError::IllegalBytes)
260}
261
262/// A read-only buffer in the VM's memory.
263///

Callers 14

sys_execveFunction · 0.85
sys_prctlFunction · 0.85
sys_statfsFunction · 0.85
sys_openatFunction · 0.85
sys_mountFunction · 0.85
sys_umount2Function · 0.85
sys_chdirFunction · 0.85
sys_chrootFunction · 0.85
sys_mkdiratFunction · 0.85
sys_linkatFunction · 0.85
sys_unlinkatFunction · 0.85
sys_symlinkatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected