IoSetTopLevelIrp

_MMPFN *__fastcall IoSetTopLevelIrp(
        _MI_PARTITION *Partition,
        _MMSUPPORT_INSTANCE *Vm,
        UINT64 PreferredNode,
        UINT64 ProtectionCode,
        UINT64 InputGetPageFlags,
        UINT64 Alignment,
        UINT64 *NumberOfPages){
  _MMPFN *result; 
  result = (_MMPFN *)KeGetCurrentThread();
  *((_QWORD *)result + 152) = Partition;
  return result;
}

Referenced by:

FsRtlCopyRead
FsRtlCopyWrite
FsRtlMdlReadDev
FsRtlPrepareMdlWriteDev
MiCreateImageOrDataSection