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

Function munmap

src/mm/mmap.rs:171–173  ·  view source on GitHub ↗
(ptr: *mut c_void, len: usize)

Source from the content-addressed store, hash-verified

169/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Memory_002dmapped-I_002fO.html#index-munmap
170#[inline]
171pub unsafe fn munmap(ptr: *mut c_void, len: usize) -> io::Result<()> {
172 backend::mm::syscalls::munmap(ptr, len)
173}
174
175/// `mremap(old_address, old_size, new_size, flags)`—Resize, modify, and/or
176/// move a memory mapping.

Callers 7

test_mmapFunction · 0.50
test_mmap_anonymousFunction · 0.50
test_mprotectFunction · 0.50
test_mlockFunction · 0.50
test_madviseFunction · 0.50
test_msyncFunction · 0.50
test_mremapFunction · 0.50

Calls

no outgoing calls

Tested by 7

test_mmapFunction · 0.40
test_mmap_anonymousFunction · 0.40
test_mprotectFunction · 0.40
test_mlockFunction · 0.40
test_madviseFunction · 0.40
test_msyncFunction · 0.40
test_mremapFunction · 0.40