MiRemoveViewsFromSectionWithPfn

VOID __stdcall MiRemoveViewsFromSectionWithPfn(_SUBSECTION *Subsection, UINT64 LastPteOffset){
  _CONTROL_AREA *ControlArea; 
  _BOOL8 v5; 
  unsigned __int64 v6; 
  UINT64 v7; 
  UINT64 v8; 

  ControlArea = Subsection->ControlArea;
  v5 = Subsection->ControlArea->FilePointer.Value != 0;
  v6 = (unsigned __int8)ExAcquireSpinLockExclusive((INT64 *)&Subsection->ControlArea->ControlAreaLock);
  LODWORD(v7) = MiRemoveViewsFromSection(Subsection, LastPteOffset);
  v8 = v7;
  ExReleaseSpinLockExclusiveFromDpcLevel((INT64 *)&ControlArea->ControlAreaLock);
  __writecr8(v6);
  if( v8 )
    MiReturnCrossPartitionSectionCharges(
      *(_MI_CROSS_PARTITION_CHARGES **)(*(&stru_140C4DB30 + 267) + 8i64 * (ControlArea->u1.Flags._bf_0 & 0x3FF)),
      v5,
      v8);
}

Referenced by:

MiDereferenceDataSubsections
MiMapViewOfDataSection
MiPfPrepareReadList
MiPfPrepareSequentialReadList
MiReleaseReadListResources