pub unsafe fn munmap(ptr: *mut c_void, len: usize) -> Result<()>Expand description
munmap(ptr, len)—Remove a memory mapping.
§Safety
ptr must be aligned to the applicable page size, and the range of memory
starting at ptr and extending for len bytes, rounded up to the
applicable page size, must be valid to mutate with ptr’s provenance. And
there must be no Rust references referring to that memory.