StorPortFreeMdl function (storport.h)
The StorPortFreeMdl routine frees a memory descriptor list (MDL) describing non-paged pool memory.
Syntax
ULONG StorPortFreeMdl(
[in] PVOID HwDeviceExtension,
[in] PVOID Mdl
);
Parameters
[in] HwDeviceExtension
A pointer to the hardware device extension for the host bus adapter (HBA).
[in] Mdl
A pointer to the MDL to be freed.
Return value
StorPortFreeMdl returns one of the following status codes:
Return code | Description |
---|---|
|
This function is not implemented on the active operating system. |
|
Indicates that the MDL was freed successfully. |
|
The pointer to the MDL is NULL. |
|
The call was made at an invalid IRQL. |
Remarks
A miniport driver calls the StorPortFreeMdl routine to free the MDL that was allocated in a previous call to StorPortAllocateMdl.
Requirements
Requirement | Value |
---|---|
Target Platform | Universal |
Header | storport.h (include Storport.h) |
IRQL | <=DISPATCH_LEVEL |
DDI compliance rules | StorPortIrql(storport) |