// srb.h
SCSIPORT_API PSCSI_REQUEST_BLOCK ScsiPortGetSrb(
[in] PVOID DeviceExtension,
[in] UCHAR PathId,
[in] UCHAR TargetId,
[in] UCHAR Lun,
[in] LONG QueueTag
);
View the official Windows Driver Kit DDI reference
No description available.
The ScsiPortGetSrb routine returns a pointer to an active SCSI request for a particular logical unit.
Note The SCSI port driver and SCSI miniport driver models may be altered or unavailable in the future. Instead, we recommend using the Storport driver and Storport miniport driver models.
DeviceExtension
[in]Pointer to the miniport driver's per-HBA storage area.
PathId
[in]Identifies the SCSI bus.
TargetId
[in]Identifies the target controller or device on the bus.
Lun
[in]Identifies the logical unit number of the target device.
QueueTag
[in]Specifies the queue tag if the miniport driver handles tagged requests; SP_UNTAGGED indicates that the request is not tagged.
ScsiPortGetSrb returns a pointer to a request for the specified logical unit. If there is no outstanding request for the given peripheral or if the QueueTag value is invalid, it returns NULL.