StorPortFreeContiguousMemorySpecifyCache 函数 (storport.h)

StorPortFreeContiguousMemorySpecifyCache 例程解除分配系统地址空间的非分页部分中的一系列非缓存内存。

语法

ULONG StorPortFreeContiguousMemorySpecifyCache(
  [in] PVOID               HwDeviceExtension,
  [in] PVOID               BaseAddress,
  [in] SIZE_T              NumberOfBytes,
  [in] MEMORY_CACHING_TYPE CacheType
);

参数

[in] HwDeviceExtension

指向主机总线适配器(HBA)的硬件设备扩展的指针。

[in] BaseAddress

要释放的基本虚拟地址。

[in] NumberOfBytes

分配给请求的字节数。 当以前调用 StorPortAllocateContiguousMemorySpecifyCacheNode 例程时,此数字必须与作为参数提供的数字相同。

[in] CacheType

调用 StorPortAllocateContiguousMemorySpecifyCacheNode 例程时使用的缓存类型。

返回值

StorPortFreeContiguousMemorySpecifyCache 例程返回以下状态代码之一:

返回代码 描述
STOR_STATUS_NOT_IMPLEMENTED
此函数未在活动作系统上实现。
STOR_STATUS_SUCCESS
作成功。

要求

要求 价值
最低支持的客户端 在 Windows 7 及更高版本的 Windows作系统中可用。
目标平台 普遍
标头 storport.h (包括 Storport.h)
IRQL <=DISPATCH_LEVEL
DDI 符合性规则 StorPortIrql(storport)

另请参阅

StorPortAllocateContiguousMemorySpecifyCacheNode