StorPortFreeRegistryBuffer 函数 (storport.h)

StorPortFreeRegistryBuffer 例程释放为存储注册表数据的缓冲区。

语法

STORPORT_API VOID StorPortFreeRegistryBuffer(
  [in] PVOID  HwDeviceExtension,
  [in] PUCHAR Buffer
);

参数

[in] HwDeviceExtension

指向硬件设备扩展的指针。 这是端口驱动程序代表微型端口驱动程序分配和初始化的每个 HBA 存储区域。 微型端口驱动程序通常在此扩展中存储特定于 HBA 的信息,例如 HBA 的状态和 HBA 的映射访问范围。 微型端口驱动程序调用 StorPortInitialize后,此区域立即可供微型端口驱动程序使用。 端口驱动程序在删除设备时释放此内存。 在调用此例程时,微型端口驱动程序必须在 IRQL PASSIVE_LEVEL运行。

[in] Buffer

指向要释放的缓冲区的指针。

返回值

没有

言论

StorPortFreeRegistryBuffer 例程释放由 StorPortAllocateRegistryBuffer分配的缓冲区。 微型端口驱动程序一次只能打开一个注册表缓冲区。 微型端口驱动程序调用 StorPortFreeRegistryBuffer 例程后,微型端口驱动程序后续调用将成功 StorPortAllocateRegistryBuffer

要求

要求 价值
目标平台 普遍
标头 storport.h (包括 Storport.h)
Storport.lib

另请参阅

StorPortAllocateRegistryBuffer