Bewerken

Delen via


ScsiPortGetSrb function (srb.h)

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.
 

Syntax

SCSIPORT_API PSCSI_REQUEST_BLOCK ScsiPortGetSrb(
  [in] PVOID DeviceExtension,
  [in] UCHAR PathId,
  [in] UCHAR TargetId,
  [in] UCHAR Lun,
  [in] LONG  QueueTag
);

Parameters

[in] DeviceExtension

Pointer to the miniport driver's per-HBA storage area.

[in] PathId

Identifies the SCSI bus.

[in] TargetId

Identifies the target controller or device on the bus.

[in] Lun

Identifies the logical unit number of the target device.

[in] QueueTag

Specifies the queue tag if the miniport driver 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.

Requirements

Requirement Value
Target Platform Desktop
Header srb.h (include Miniport.h, Scsi.h)
Library Scsiport.lib

See also

SCSI_REQUEST_BLOCK