StorPortUpdateAdapterMaxIO function (storport.h)

A miniport calls StorPortUpdateAdapterMaxIO to update the maximum number of outstanding I/O operations supported by an adapter.

Syntax

ULONG StorPortUpdateAdapterMaxIO(
  PVOID HwDeviceExtension,
  ULONG MaxIoCount
);

Parameters

HwDeviceExtension

[in] A pointer to miniport's device extension.

MaxIoCount

[in] Maximum number of outstanding I/O operations supported by the adapter.

Return value

StorPortUpdateAdapterMaxIO returns STOR_STATUS_SUCCESS upon success. Otherwise, it returns one of the following values:

Value Description
STOR_STATUS_NOT_IMPLEMENTED The function was called on an OS version that doesn't support it.
STOR_STATUS_INVALID_PARAMETER There is an invalid parameter.
STOR_STATUS_INVALID_DEVICE_REQUEST The function was called outside of HwInitialize/HwPassiveInitRoutine.

Remarks

StorPortUpdateAdapterMaxIO is valid only within a HwInitialize/HwPassiveInitRoutine callback and has effect only during adapter initialization.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1709
Target Platform Windows
Header storport.h

See also

HwInitialize

HwPassiveInitRoutine

PORT_CONFIGURATION_INFORMATION

StorPortUpdatePortConfigMaxIOInfo