MiNonPagedPoolToNode

NTSTATUS __stdcall MiNonPagedPoolToNode(PVOID BugCheckParameter2){
  NTSTATUS result; 
  _QWORD *v2; 

  result = 0;
  if( !KeNumberNodes )
LABEL_6:
    KeBugCheckEx(0x1Au, (PVOID)0x5201, BugCheckParameter2, 0i64, 0i64);
  v2 = (_QWORD *)(*(&stru_140C4DB30 + 22) + 168i64);
  while( (unsigned __int64)BugCheckParameter2 < *(v2 - 1) || (unsigned __int64)BugCheckParameter2 >= *v2 )
  {
    ++result;
    v2 += 22;
    if( result >= (unsigned int)(unsigned __int16)KeNumberNodes )
      goto LABEL_6;
  }
  return result;
}

Referenced by:

MiMakeSystemRangeAvailable