StorPortSetDeviceQueueDepth function

The StorPortSetDeviceQueueDepth routine sets the maximum depth of the device queue for the indicated device.


STORPORT_API BOOLEAN StorPortSetDeviceQueueDepth(
  _In_ PVOID HwDeviceExtension,
  _In_ UCHAR PathId,
  _In_ UCHAR TargetId,
  _In_ UCHAR Lun,
  _In_ ULONG Depth



A pointer to the miniport driver's per-HBA storage area.


Contains the path ID of the target device.


Contains the device number of the target device.


Contains the logical unit number of the target device.


Supplies the depth to which the queue is to be set. This value is always > 0.

Return Value

StorPortSetDeviceQueueDepth returns TRUE if the queue depth was successfully set, or FALSE if the operation failed.


Before the first call to StorPortSetDeviceQueueDepth, the device queue depth is set to the default value. The following conditional description determines the default queue depth.

InitialQueueDepth PORT_CONFIGURATION_INFORMATION InitialQueueDepth MaxIOsPerLun PORT_CONFIGURATION_INFORMATION MaxIOsPerLun The StorPortSetDeviceQueueDepth routine should be called when the miniport driver receives the first SCSI Inquiry command for the specified LUN, or at any time thereafter (but not before), as long as the LUN is valid.


Target Platform Universal
Header storport.h (include Storport.h)
Library Storport.lib