// storport.h
ULONG StorPortFreeHostMemoryBuffer(
[in] PVOID HwDeviceExtension,
PACCESS_RANGE PhysicalAddressRanges,
[in] ULONG PhysicalAddressRangeCount
);
View the official Windows Driver Kit DDI referenceNo description available.
The StorPortFreeHostMemoryBuffer routine frees the physically contiguous memory that was allocated to be used for a Host Memory Buffer (HMB)
HwDeviceExtension [in]A pointer to the hardware device extension for the host bus adapter (HBA).
PhysicalAddressRangesThe array of physical address ranges that make up the Host Memory Buffer previously allocated by StorPortAllocateHostMemoryBuffer.
PhysicalAddressRangeCount [in]The number of entries in PhysicalAddressRanges.
StorPortFreeHostMemoryBuffer returns one of the following status codes:
| Return code | Description |
|---|---|
| STOR_STATUS_SUCCESS | The host memory buffer was successfully freed. |
| STOR_STATUS_UNSUCCESSFUL | The host memory buffer was not valid (likely already freed). |
StorPortAllocateHostMemoryBuffer