PsGetNextPartition

VOID **__fastcall PsGetNextPartition(VOID **a1){
  VOID **v1; 
  VOID **v2; 
  INT64 v3; 
  VOID **v4; 
  v1 = a1;
  v2 = 0i64;
  while( 1 )
  {
    LODWORD(v3) = PsGetNextPartitionUnsafe(a1);
    if( !v3 )
      break;
    if( PsReferencePartitionSafe(v3) )
    {
      v2 = v4;
      break;
    }
    a1 = v4;
  }
  if( v1 )
    PsDereferencePartition((INT64)v1);
  return v2;
}

Referenced by:

EtwpLogMemNodeInfo
ExpCheckForWorker
ExpNodeHotAddProcessorWorker
MiFinishResume
MiFreeExcessSegments
MiMirrorBrownPhase
MmEmptyAllWorkingSets
MmEnablePeriodicAccessClearing
MmFlushAllPagesEx
MmSetMinimumAgeRate
MmSetTrimWhileAgingState
MmTrimFilePagesFromWorkingSets