StorPortFreePool function (storport.h)
The StorPortFreePool routine frees a block of memory that was previously allocated by a call to the StorPortAllocatePool routine.
Syntax
ULONG StorPortFreePool(
[in] PVOID HwDeviceExtension,
[in] PVOID BufferPointer
);
Parameters
[in] HwDeviceExtension
A pointer to the hardware device extension for the host bus adapter (HBA).
[in] BufferPointer
A pointer to the block of memory to free. This must be a pointer that was returned by a previous call to the StorPortAllocatePool routine.
Return value
StorPortFreePool returns one of the following status codes:
Return code | Description |
---|---|
|
This function is not implemented on the active operating system. |
|
Indicates that the routine freed the memory block successfully. |
|
The pointer to the memory block to be freed is NULL. |
|
The call was made at an invalid IRQL. |
Requirements
Requirement | Value |
---|---|
Target Platform | Universal |
Header | storport.h (include Storport.h) |
IRQL | <=DISPATCH_LEVEL |
DDI compliance rules | StorPortAllocatePool(storport), StorPortAllocatePool2(storport), StorPortIrql(storport) |