ScsiPortCompleteRequest


VOID ScsiPortCompleteRequest(HwDeviceExtension, PathId, TargetId, Lun, SrbStatus)
IN PVOID  HwDeviceExtension;
IN UCHAR  PathId;
IN UCHAR  TargetId;
IN UCHAR  Lun;
IN UCHAR  SrbStatus;

Completes all of the active requests for the specified logical unit.

HwDeviceExtension

Points to the HBA miniport driver's storage for per-adapter data.

PathId

Specifies the SCSI bus or path ID.

TargetId

Specifies the target controller; -1 indicates all logical units on the host bus adapter.

Lun

Specifies the logical unit on the target controller(s); -1 indicates all logical units on the target controller(s).

SrbStatus

Identifies the completion status to be stored in the SrbStatus field of each SRB.

ScsiPortCompleteRequest can be called to complete requests after a bus reset, a device reset, or an abort, rather than calling ScsiPortNotification for each request.

See also SCSI_REQUEST_BLOCK, ScsiPortNotification