PspLockQuotaExpansion

VOID __stdcall PspLockQuotaExpansion(_PSP_QUOTA_EXPANSION_DESCRIPTOR *Descriptor, UINT8 *OldIrql){
  _ETHREAD *CurrentThread; 

  if( *Descriptor )
  {
    *OldIrql = KeAcquireSpinLockRaiseToDpc((UINT64 *)Descriptor + 2);
  }
  else
  {
    CurrentThread = (_ETHREAD *)KeGetCurrentThread();
    *OldIrql = 0;
    --CurrentThread->Tcb.SpecialApcDisable;
    ExAcquirePushLockExclusiveEx((_EX_PUSH_LOCK *)Descriptor + 2, 0i64);
  }
}

Referenced by:

PspExpandLimit
PspExpandQuota
PspReturnResourceQuota