共用方式為


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

包含目標裝置的路徑識別碼。

[in] TargetId

包含目標裝置的裝置編號。

[in] Lun

包含目標裝置的邏輯單元編號。

[in] Depth

提供要設定佇列的深度。 此值一律 > 0。

傳回值

StorPortSetDeviceQueueDepth 如果成功設定佇列深度,則會傳回 true TRUE;如果作業失敗,FALSE

言論

第一次呼叫 storPortSetDeviceQueueDepth 之前,裝置佇列深度會設定為預設值。

StorPortSetDeviceQueueDepth 例程應在迷你埠驅動程式收到指定 LUN 的第一個 SCSI 查詢命令時呼叫,或之後的任何時間(但並非之前),只要 LUN 有效。

要求

要求 價值
目標平臺 普遍
標頭 storport.h (包括 Storport.h)
連結庫 Storport.lib