MmUnmapLockedRestartPages

VOID __stdcall MmUnmapLockedRestartPages(_MDL *MemoryDescriptorList){
  VOID *v2; 
  void *MappedSystemVa; 
  unsigned __int64 v4; 
  _MMSUPPORT_INSTANCE *AnyMultiplexedVm; 
  _MMPTE *PteAddress; 

  v2 = (VOID *)((LODWORD(MemoryDescriptorList->StartVa) + MemoryDescriptorList->ByteOffset) & 0xFFF);
  MappedSystemVa = MemoryDescriptorList->MappedSystemVa;
  v4 = ((unsigned __int64)v2 + MemoryDescriptorList->ByteCount + 4095) >> 12;
  AnyMultiplexedVm = MiGetAnyMultiplexedVm(MiWorkingSetTypeSystemViews, v2);
  MiUnmapMdlCommon((UINT64)MappedSystemVa, (INT64)AnyMultiplexedVm, 0i64, (INT64)MemoryDescriptorList, v4);
  MemoryDescriptorList->MdlFlags &= 0xFFDEu;
  PteAddress = MiGetPteAddress(MappedSystemVa);
  MiReleaseDriverPtes(0i64, PteAddress, (unsigned int)v4);
}

Referenced by:

No references.