StorPortFreePool routine

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

HwDeviceExtension [in]

A pointer to the hardware device extension for the host bus adapter (HBA).

BufferPointer [in]

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 codeDescription
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.

 

Remarks

Requirements

Header

Storport.h (include Storport.h)

IRQL

<=DISPATCH_LEVEL

DDI compliance rules

StorPortAllocatePool2, StorPortIrql

See also

StorPortAllocatePool

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft