StorPortFreeHostMemoryBuffer function (storport.h)
The StorPortFreeHostMemoryBuffer routine frees the physically contiguous memory that was allocated to be used for a Host Memory Buffer (HMB)
Syntax
ULONG StorPortFreeHostMemoryBuffer(
[in] PVOID HwDeviceExtension,
PACCESS_RANGE PhysicalAddressRanges,
[in] ULONG PhysicalAddressRangeCount
);
Parameters
[in] HwDeviceExtension
A pointer to the hardware device extension for the host bus adapter (HBA).
PhysicalAddressRanges
The array of physical address ranges that make up the Host Memory Buffer previously allocated by StorPortAllocateHostMemoryBuffer.
[in] PhysicalAddressRangeCount
The number of entries in PhysicalAddressRanges.
Return value
StorPortFreeHostMemoryBuffer returns one of the following status codes:
Return code | Description |
---|---|
|
The host memory buffer was successfully freed. |
|
The host memory buffer was not valid (likely already freed). |
Requirements
Requirement | Value |
---|---|
Target Platform | Universal |
Header | storport.h (include Storport.h) |