Schedules a callback event for a Storport timer context object.
ULONG StorPortRequestTimer( PVOID HwDeviceExtension, PVOID TimerHandle, PHW_TIMER_EX TimerCallback, PVOID CallbackContext, ULONGLONG TimerValue, ULONGLONG TolerableDelay );
A pointer to the hardware device extension for the host bus adapter (HBA).
A pointer to an opaque buffer for the timer context returned by StorPortInitializeTimer.
A pointer to a timer callback routine supplied by the miniport. The following is the prototype defined for PHW_TIMER_EX:
typedef VOID (*PHW_TIMER_EX) ( _In_ PVOID DeviceExtension, _In_opt_ PVOID Context );
A pointer to a miniport provided context for the timer callback.
The timeout value for the timer, in microseconds. Setting TimerValue to 0 will cancel the timer.
The allowable delay for the timer in microseconds. Values less than 32 microseconds are ignored and TolerableDelay defaults to 0.
The StorPortRequestTimer routine returns one of these status codes:
||Not enough resources available to defer scheduling of the timer.|
||HwDeviceExtension, TimerHandle, or TimerCallback is NULL. The timer context object, TimerHandle, is invalid.|
||A previous timer request is active. TimerValue > 0 and TimerCallback has not been called.|
||The timer request was successfully scheduled.|
The StorPortRequestTimer routine is callable at any IRQL. However, if the routine is called when IRQL > DISPATCH_LEVEL, the timer's scheduling is deferred until IRQL <= DISPATCH_LEVEL.
|Windows version||Available in Windows 8 and later versions of Windows.|
|Header||storport.h (include Storport.h)|