NdisStallExecution function

The NdisStallExecution function stalls the caller on the current processor for a given interval.

Syntax


VOID NdisStallExecution(
  _In_ UINT MicrosecondsToStall
);

Parameters

MicrosecondsToStall [in]

The number of microseconds to delay. A driver should specify no more than 50 microseconds.

Return value

None

Remarks

NdisStallExecution is a processor-dependent function that busy-waits for at least the specified number of microseconds, but not significantly longer.

This function should be called by drivers that must wait for an interval of more than a few instructions but less than 50 microseconds. Drivers that call this routine should minimize the number of microseconds that they specify.

If a driver must wait for an interval longer than 50 microseconds, it should call the NdisMSleep function. Note that callers of NdisMSleep run at IRQL < DISPATCH_LEVEL.

Requirements

Target platform

Desktop

Version

Supported for NDIS 6.0 and NDIS 5.1 drivers (see NdisStallExecution (NDIS 5.1)) in Windows Vista. Supported for NDIS 5.1 drivers (see NdisStallExecution (NDIS 5.1)) in Windows XP.

Header

Ndis.h (include Ndis.h)

IRQL

Any level

DDI compliance rules

NdisStallExecution_Delay

See also

MiniportInitializeEx
MiniportResetEx
NdisSetTimerObject
NdisMSleep

 

 

Send comments about this topic to Microsoft

表示:
© 2015 Microsoft