共用方式為


StorPortFreeHostMemoryBuffer 函式 (storport.h)

StorPortFreeHostMemoryBuffer 例程會釋放配置給主機記憶體緩衝區 (HMB) 的實體連續記憶體

語法

ULONG StorPortFreeHostMemoryBuffer(
  [in] PVOID         HwDeviceExtension,
       PACCESS_RANGE PhysicalAddressRanges,
  [in] ULONG         PhysicalAddressRangeCount
);

參數

[in] HwDeviceExtension

主機總線適配卡 (HBA) 的硬體裝置擴充功能指標。

PhysicalAddressRanges

由 StorPortAllocateHostMemoryBuffer 所配置之主機記憶體緩衝區的實體地址範圍數位。

[in] PhysicalAddressRangeCount

PhysicalAddressRanges中的項目數。

傳回值

StorPortFreeHostMemoryBuffer 會傳回下列其中一個狀態代碼:

傳回碼 描述
STOR_STATUS_SUCCESS
已成功釋放主機記憶體緩衝區。
STOR_STATUS_UNSUCCESSFUL
主機記憶體緩衝區無效(可能已經釋放)。

要求

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

另請參閱

StorPortAllocateHostMemoryBuffer