The StorPortInitializePerfOpts function initializes the performance optimizations that both the miniport driver and the Storport driver support using a PERF_CONFIGURATION_DATA structure.
ULONG StorPortInitializePerfOpts( _In_ PVOID HwDeviceExtension, _In_ BOOLEAN Query, _Inout_ PPERF_CONFIGURATION_DATA PerfConfigData );
A pointer to the hardware device extension for the host bus adapter (HBA). This parameter must not be NULL.
If set to TRUE, Storport will set the flags in PerfConfigData corresponding to the optimizations Storport supports. If set to FALSE, Storport will initialize the optimizations specified by the flags in PerfConfigData.
A pointer to a PERF_CONFIGURATION_DATA structure that is supplied by the miniport driver. This parameter must not be NULL.
StorPortInitializePerfOpts returns one of the following status values:
||This function is not implemented on the active operating system.|
||Indicates that the performance optimization settings have been applied. Or if Query is set to TRUE, the Flags member of the structure pointed to by PerfConfigData contains the supported flags.|
||The miniport driver set a flag in PerfConfigData that Storport did not recognize, or the miniport driver has called this routine from outside the miniport-driver-supplied HwStorInitialize routine.|
||Unable to allocate internal structures to support the requested optimizations.|
||Either the HwDeviceExtension parameter or the PerfConfigData parameter was NULL.|
Available performance optimizations depend on the version of PERF_CONFIGURATION_DATA. Setting the Version member to STOR_PERF_VERSION will allow all supported optimizations to be selected.
|Header||storport.h (include Storport.h)|
|DDI compliance rules||StorPortPerfOpts|