ScsiPortGetSrb

PSCSI_REQUEST_BLOCK ScsiPortGetSrb(DeviceExtension, PathId, TargetId, Lun, QueueTag)
IN PVOID  DeviceExtension;
IN UCHAR  PathId;
IN UCHAR  TargetId;
IN UCHAR  Lun;
IN LONG  QueueTag;

Retrieves an active SCSI request for a particular logical unit.

DeviceExtension
Points to the miniport driver's storage for per-adapter data.
PathId
Identifies the SCSI bus.
TargetId
Identifies the target ID on the bus.
Lun
Identifies the logical unit number of the target device.
QueueTag
Specifies the queue tag if the request is tagged; SP_UNTAGGED indicates that the request is not tagged.