5.2.3 Lock Address Space

Generally memory is made resident or nonresident a page at a time and is managed in page units. For this reason, in many cases the OS does not check for matching of locked and unlocked spaces. It is the responsibility of the calling side to make sure the same spaces are specified in lock and unlock operations.

  • ER LockSpace( VP addr, INT len )

Locks (makes resident) the memory space of len bytes from location addr.

E_MACV The memory does not exist

  • ER UnlockSpace( VP addr, INT len )

Unlocks (makes nonresident) the memory space of len bytes from location addr. If the same space was locked more than once, it is not unlocked until the number of unlock operations equals the number of lock operations.

Note that it is not possible to unlock just part of a locked space.

Comments