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
STOR_STATUS_NOT_IMPLEMENTED
This function is not implemented on the active operating system.
STOR_STATUS_SUCCESS
Indicates that the routine freed the memory block successfully.
STOR_STATUS_INVALID_PARAMETER
The pointer to the memory block to be freed is NULL.
STOR_STATUS_INVALID_IRQL
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)

See also

StorPortAllocatePool