Function region::unlock [−][src]
pub unsafe fn unlock(address: *const u8, size: usize) -> Result<()>
Unlocks one or more memory regions from RAM.
- The range is
[address, address + size)
- The address may not be null.
- The address is rounded down to the closest page boundary.
- The size may not be zero.
- The size is rounded up to the closest page boundary, relative to the address.
Safety
This function is unsafe since it cannot be known whether it is called on a
locked region or not. In normal uses cases, the LockGuard
is recommended
for safe code.