共用方式為


StorPortFreeDmaMemory 函式 (storport.h)

此函式是 storPortFreeContiguousMemorySpecifyCache 函式 的擴充版本。 它會解除分配系統地址空間之非分頁部分的非快取記憶體範圍。

語法

ULONG StorPortFreeDmaMemory(
  [in]     PVOID               HwDeviceExtension,
  [in]     PVOID               BaseAddress,
  [in]     SIZE_T              NumberOfBytes,
  [in]     MEMORY_CACHING_TYPE CacheType,
  [in_opt] PHYSICAL_ADDRESS    PhysicalAddress
);

參數

[in] HwDeviceExtension

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

[in] BaseAddress

要釋放的基底虛擬位址。

[in] NumberOfBytes

配置給要求的位元組數目。 當先前呼叫 storPortAllocateContiguousMemorySpecifyCacheNode 例程時,這必須是參數所提供的相同數位。

[in] CacheType

呼叫 storPortAllocateContiguousMemorySpecifyCacheNode 例程時所使用的快取類型。

[in_opt] PhysicalAddress

要解除分配之內存區塊起始地址的實體位址。

傳回值

此函式會傳回STOR_STATUS程序代碼,例如下列其中一項。

傳回碼 描述
STOR_STATUS_NOT_IMPLEMENTED 此函式不會在作用中的作系統上實作。
STOR_STATUS_SUCCESS 作業成功。

要求

要求 價值
最低支援的用戶端 Windows 10 (版本 1803)
目標平臺 普遍
標頭 storport.h

另請參閱

StorPortAllocateContiguousMemorySpecifyCacheNode