IoAllocateIrp

IRP *__stdcall IoAllocateIrp(INT8 StackSize, UINT8 ChargeQuota){
  PVOID retaddr; 
  if( !IopDispatchAllocateIrp )
    return IopAllocateIrpPrivate(0i64, StackSize, ChargeQuota, retaddr);
  if( IopDispatchAllocateIrp == 2 )
    return IopAllocateIrpWithExtension((_DEVICE_OBJECT *)StackSize, StackSize, ChargeQuota, retaddr);
  return IovAllocateIrp(0i64, StackSize, ChargeQuota, retaddr);
}

Referenced by:

CcSetValidData
CmpFileFlushAndPurge
CmpGetVolumeClusterSize
IopEjectDevice
IopFilterResourceRequirementsCall
IopSynchronousCall
PnpAsynchronousCall
PopAcquireCoolingInterface
PopAllocateIrp
PopFxRegisterDeviceWorker
PpIrpAllocateDeviceUsageNotification
SmKmIsVolumeIoPossible
SmKmIssueVolumeIo
WmipGetFilePDO
WmipSendWmiIrp
WmipSendWmiIrpToTraceDeviceList
WmipSetTraceNotify