StorPortCompleteRequest function (storport.h)

The StorPortCompleteRequest routine completes all outstanding requests setting the SRB status value to SrbStatus.

Syntax

STORPORT_API VOID StorPortCompleteRequest(
  [in] PVOID HwDeviceExtension,
  [in] UCHAR PathId,
  [in] UCHAR TargetId,
  [in] UCHAR Lun,
  [in] UCHAR SrbStatus
);

Parameters

[in] HwDeviceExtension

A pointer to the hardware device extension. This is a per HBA storage area that the port driver allocates and initializes on behalf of the miniport driver. Miniport drivers usually store HBA-specific information in this extension, such as the state of the HBA and the mapped access ranges for the HBA. This area is available to the miniport driver immediately after the miniport driver calls StorPortInitialize. The port driver frees this memory when it removes the device.

[in] PathId

Identifies the SCSI bus. A value of SP_UNTAGGED indicates all buses controlled by the HBA.

[in] TargetId

Identifies the target controller or device on the given buses. A value of SP_UNTAGGED indicates all targets on the bus.

[in] Lun

Identifies the logical unit for the given target controller or device. A value of SP_UNTAGGED indicates all logical units for the given target controllers on the given buses. Full-duplex miniport drivers must not assign a value of SP_UNTAGGED to this member.

[in] SrbStatus

Specifies the completion status to be set in the SrbStatusmember of each SRB.

Return value

None

Remarks

We do not recommend that writers of Storport miniport drivers use this particular Storport interface routine. Instead, the miniport driver should call StorPortNotification( RequestComplete ) for each outstanding request.

Requirements

Requirement Value
Target Platform Universal
Header storport.h (include Storport.h)
Library Storport.lib
DDI compliance rules StorPortCompleteRequest(storport), StorPortDDIsPortOnly(storport)

See also

ScsiPortCompleteRequest