NdisInterlockedAddLargeStatistic function

The NdisInterlockedAddLargeStatistic function performs an interlocked addition of a ULONG increment value to a LARGE_INTEGER addend value.

Syntax


VOID NdisInterlockedAddLargeStatistic(
  _In_ PLARGE_INTEGER Addend,
  _In_ ULONG          Increment
);

Parameters

Addend [in]

A pointer to a LARGE_INTEGER value that is incremented by the value of Increment .

Increment [in]

A ULONG value that is added to the value to which the Addend parameter points.

Return value

None

Remarks

Functions that perform interlocked operations must not cause a page fault to occur. Neither their code nor any of the data that they access can cause a page fault without bringing down the local computer.

NdisInterlockedAddLargeStatistic masks interrupts and can be safely used to synchronize a driver's MiniportInterrupt function with other driver code.

Requirements

Target platform

Version

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

Header

Ndis.h (include Ndis.h)

IRQL

Any level

See also

MiniportInterrupt

 

 

Send comments about this topic to Microsoft

Show: