LockMem Lock a region of memory.

Inputs: AX = 0ff1bh

BX:CX = Starting linear address of memory to lock.

SI:DI = Size of region to lock in bytes.

Outputs: Carry set on error.

Errors: If any of the region specified is invalid or if not enough physical memory is available to fill the region specified, then none of the memory is locked and this function returns carry set.

Notes: Memory that is locked cannot be swapped to disk by the VMM. Locking applies to memory on 4K boundaries. Therefore, areas of memory below and above the memory being locked are locked if the specified region is not aligned to a 4K boundary.

LockMem32 Lock a region of memory.

Inputs: AX = 0ff1ch

ESI = Starting linear address of memory to lock.

ECX = Size of region to lock in bytes.

Outputs: Carry set on error.

Errors: See LockMem.

Notes: Memory that is locked cannot be swapped to disk by the VMM. Locking applies to memory on 4K boundaries. Therefore, areas of memory below and above the memory being locked are locked if the specified region is not aligned to a 4K boundary.

Next Page

Previous Page

Go to Table of Contents

Go back to Devore Software & Consulting home page