MmUnmapLockedPages

VOID
    MmUnmapLockedPages(

        IN PVOID  BaseAddress,
        IN PMDL  MemoryDescriptorList
        );

MmUnmapLockedPages releases a mapping set up by a preceding call to MmMapLockedPages.

Parameters

BaseAddress
Points to the base virtual address to which the physical pages were mapped.
MemoryDescriptorList
Points to an MDL.

Comments

Callers of MmUnmapLockedPages must be running at IRQL <= DISPATCH_LEVEL if the pages were mapped to system space. Otherwise, the caller must be running at IRQL < DISPATCH_LEVEL.

See Also

MmMapLockedPages