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