Share via


NdisStallExecution (NDIS 5.1) function

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

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

Syntax

VOID NdisStallExecution(
  _In_ UINT MicrosecondsToStall
);

Parameters

  • MicrosecondsToStall [in]
    Specifies the number of microseconds to delay. A driver should specify no more than 50 microseconds.

Return value

None

Remarks

NdisStallExecution is a processor-dependent routine 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 NdisMSleep. Note that callers of NdisMSleep run at IRQL < DISPATCH_LEVEL.

Requirements

Target platform

Desktop

Version

See NdisStallExecution.

Header

Ndis.h (include Ndis.h)

IRQL

Any level

See also

MiniportInitialize

MiniportReset

NdisMSetTimer

NdisMSleep

 

 

Send comments about this topic to Microsoft