StorPortSetDeviceQueueDepth 函数 (storport.h)
StorPortSetDeviceQueueDepth 例程设置所指示设备设备队列的最大深度。
语法
STORPORT_API BOOLEAN StorPortSetDeviceQueueDepth(
[in] PVOID HwDeviceExtension,
[in] UCHAR PathId,
[in] UCHAR TargetId,
[in] UCHAR Lun,
[in] ULONG Depth
);
参数
[in] HwDeviceExtension
指向微型端口驱动程序每 HBA 存储区域的指针。
[in] PathId
包含目标设备的路径 ID。
[in] TargetId
包含目标设备的设备编号。
[in] Lun
包含目标设备的逻辑单元号。
[in] Depth
提供要设置队列的深度。 此值始终 > 0。
返回值
StorPortSetDeviceQueueDepth 如果成功设置队列深度,TRUE 返回 TRUE;如果作失败,FALSE。
言论
在首次调用 StorPortSetDeviceQueueDepth之前,设备队列深度设置为默认值。
当微型端口驱动程序收到指定 LUN 的第一个 SCSI 查询命令时,或者只要 LUN 有效,就应调用 StorPortSetDeviceQueueDepth 例程。
要求
要求 | 价值 |
---|---|
目标平台 | 普遍 |
标头 | storport.h (包括 Storport.h) |
库 | Storport.lib |