StorPortFreeWorker routine

Frees a Storport work item previously allocated by the StorPortInitializeWorker routine.

Syntax


ULONG StorPortFreeWorker(
  _In_  PVOID HwDeviceExtension,
  _In_  PVOID WorkItem
);

Parameters

HwDeviceExtension [in]

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

WorkItem [in]

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

Current IRQL > DISPATCH_LEVEL.

STOR_STATUS_INVALID_PARAMETER

Either HwDeviceExtension or WorkItem is NULL.

STOR_STATUS_BUSY

The work item is currently queued for processing.

STOR_STATUS_SUCCESS

The work item was successfully freed.

STOR_STATUS_UNSUCCESSFUL

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

Version

Available in Windows 8 and later versions of Windows.

Header

Storport.h (include Storport.h)

IRQL

<= DISPATCH_LEVEL

See also

StorPortInitializeWorker
StorPortQueueWorkItem

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft