MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / virtual_memory_map_config_struct_size

Function virtual_memory_map_config_struct_size

src/process/prctl.rs:727–732  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

725#[doc(alias = "PR_SET_MM")]
726#[doc(alias = "PR_SET_MM_MAP_SIZE")]
727pub fn virtual_memory_map_config_struct_size() -> io::Result<usize> {
728 let mut value: c_uint = 0;
729 let value_ptr = as_mut_ptr(&mut value);
730 unsafe { prctl_3args(PR_SET_MM, PR_SET_MM_MAP_SIZE as *mut _, value_ptr.cast())? };
731 Ok(value as usize)
732}
733
734/// This structure provides new memory descriptor map which mostly modifies
735/// `/proc/pid/stat[m]` output for a task.

Callers

nothing calls this directly

Calls 2

as_mut_ptrFunction · 0.85
prctl_3argsFunction · 0.85

Tested by

no test coverage detected