Function region::unlock[][src]

pub fn unlock<T>(address: *const T, size: usize) -> Result<()>
Expand description

Unlocks one or more memory regions from RAM.

If possible, prefer to use lock combined with the LockGuard.

Parameters

  • The range is [address, address + size)
  • 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.

Errors

  • If an interaction with the underlying operating system fails, an error will be returned.
  • If size is zero, Error::InvalidParameter will be returned.