VOID
ScsiPortCompleteRequest(
IN PVOID HwDeviceExtension,
IN UCHAR PathId,
IN UCHAR TargetId,
IN UCHAR Lun,
IN UCHAR SrbStatus
);
ScsiPortCompleteRequest completes all of the active requests for the given SCSI bus, controller, or LU, including a request being processed by the calling miniport routine.
Parameters
HwDeviceExtension
Points to the miniport driver’s per-HBA storage area.
PathId
Identifies the SCSI bus; SP_UNTAGGED indicates all buses controlled by the HBA.
TargetId
Identifies the target controller or device on the given bus(es); SP_UNTAGGED indicates all targets on the bus.
Lun
Identifies the logical unit for the given target controller or device; SP_UNTAGGED indicates all logical units for the given target controller(s) on the given bus(es).
SrbStatus
Specifies the completion status to be set in the SrbStatus member of each SRB.
Comments
ScsiPortCompleteRequest can be called to complete outstanding requests after a bus reset, a device reset, or an abort, rather than calling ScsiPortNotification for each outstanding request individually. After calling ScsiPortCompleteRequest, do not doubly complete by also calling ScsiPortNotification individually for each request.
See Also