ScsiPortGetSrb

PSCSI_REQUEST_BLOCK
    ScsiPortGetSrb(

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

ScsiPortGetSrb returns a pointer to an active SCSI request for a particular logical unit.

Parameters

DeviceExtension
Points to the miniport driver’s per-HBA storage area.
PathId
Identifies the SCSI bus.
TargetId
Identifies the target controller or device on the bus.
Lun
Identifies the logical unit number of the target device.
QueueTag
Specifies the queue tag if the miniport handles tagged requests; SP_UNTAGGED indicates that the request is not tagged.

Return Value

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.

See Also

SCSI_REQUEST_BLOCK