StorPortDeviceReady 函数 (storport.h)

StorPortDeviceReady 例程通知端口驱动程序指示指示的逻辑单元已准备好处理新请求。

语法

STORPORT_API BOOLEAN StorPortDeviceReady(
  [in] PVOID HwDeviceExtension,
  [in] UCHAR PathId,
  [in] UCHAR TargetId,
  [in] UCHAR Lun
);

参数

[in] HwDeviceExtension

指向硬件设备扩展的指针。 这是端口驱动程序代表微型端口驱动程序分配和初始化的每个 HBA 存储区域。 微型端口驱动程序通常在此扩展中存储特定于 HBA 的信息,例如 HBA 的状态和 HBA 的映射访问范围。 微型端口驱动程序调用 StorPortInitialize后,此区域立即可供微型端口驱动程序使用。 端口驱动程序在删除设备时释放此内存。

[in] PathId

标识 SCSI 总线。

[in] TargetId

标识给定总线上的目标控制器或设备。

[in] Lun

标识给定目标控制器或设备的逻辑单元。

返回值

StorPortDeviceReady 如果微型端口驱动程序成功通知端口驱动程序,则返回 TRUE,否则 FALSE

言论

通常不需要通知目标设备需要新请求。

要求

要求 价值
目标平台 普遍
标头 storport.h (包括 Storport.h)
Storport.lib

另请参阅

StorPortDeviceBusy

StorPortReady