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

Function mlock_with

src/mm/mmap.rs:339–341  ·  view source on GitHub ↗
(ptr: *mut c_void, len: usize, flags: MlockFlags)

Source from the content-addressed store, hash-verified

337#[inline]
338#[doc(alias = "mlock2")]
339pub unsafe fn mlock_with(ptr: *mut c_void, len: usize, flags: MlockFlags) -> io::Result<()> {
340 backend::mm::syscalls::mlock_with(ptr, len, flags)
341}
342
343/// `munlock(ptr, len)`—Unlock memory.
344///

Callers 3

test_mlockFunction · 0.50
test_mlock_withFunction · 0.50
test_mlock_with_onfaultFunction · 0.50

Calls

no outgoing calls

Tested by 3

test_mlockFunction · 0.40
test_mlock_withFunction · 0.40
test_mlock_with_onfaultFunction · 0.40