The MmUnlockPages routine unlocks physical pages described by a given MDL.
VOID
MmUnlockPages(
IN PMDL MemoryDescriptorList
);
None
Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.
The memory described by the specified MDL must have been locked previously by a call to MmProbeAndLockPages. As the pages are unlocked, the MDL is updated.
Callers of MmUnlockPages must be running at IRQL <= DISPATCH_LEVEL.