PsGetPagePriorityThread

UINT64 __stdcall PsGetPagePriorityThread(_ETHREAD *Thread){
  UINT64 result; 

  result = (Thread->CrossThreadFlags >> 12) & 7;
  if( (Thread->Tcb.Process->Flags & 0x100000) != 0 && (unsigned int)result >= 2 )
    return 2i64;
  return result;
}

Referenced by:

CcAsyncCopyRead
CcCompleteAsyncRead
CcInitializeCacheMapEx
CcPerformReadAhead
CcScheduleReadAheadEx
EtwTraceThread
EtwpTraceThreadRundown
ExpWorkerThread
MiAllocateKernelStackPages
MiCopyOnWrite
MiGetEffectivePagePriorityThread
MiInitializeInPageSupport
MiInitializePfn
PfLogFileDataAccess
PfSnAsyncContextInitialize
PfSnCheckActionsNeeded
SmSetThreadPagePriority