MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / munlock

Method munlock

devices/src/pvmemcontrol.rs:467–472  ·  view source on GitHub ↗
(&self, addr: u64, length: u64)

Source from the content-addressed store, hash-verified

465 }
466
467 fn munlock(&self, addr: u64, length: u64) -> result::Result<(), Error> {
468 // SAFETY: [`base`, `base` + `len`) is guest memory
469 self.operate_on_memory_range(addr, length, |base, len| unsafe {
470 libc::munlock(base, len)
471 })
472 }
473
474 fn mprotect(
475 &self,

Callers 1

process_requestMethod · 0.80

Calls 1

Tested by

no test coverage detected