StorPortFreeWorker function (storport.h)
Frees a Storport work item previously allocated by the StorPortInitializeWorker routine.
Syntax
ULONG StorPortFreeWorker(
[in] PVOID HwDeviceExtension,
PVOID Worker
);
Parameters
[in] HwDeviceExtension
A pointer to the hardware device extension for the host bus adapter (HBA).
Worker
A pointer to an opaque buffer for the work item context returned by StorPortInitializeWorker.
Return value
The StorPortInitializeWorker routine returns one of these status codes:
Return code | Description |
---|---|
|
Current IRQL > DISPATCH_LEVEL. |
|
Either HwDeviceExtension or WorkItem is NULL. |
|
The work item is currently queued for processing. |
|
The work item was successfully freed. |
|
The work item is already free. |
Remarks
Miniports should call StorPortFreeWorker whenever a work item is no longer needed or when the miniport receives a PnP SRB notification that the adapter is removed.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in Windows 8 and later versions of Windows. |
Target Platform | Universal |
Header | storport.h (include Storport.h) |
IRQL | <= DISPATCH_LEVEL |