NdisInterlockedAddLargeStatistic macro (ndis.h)

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

Syntax

void NdisInterlockedAddLargeStatistic(
  [in]  _Addend,
  [in]  _Increment
);

Parameters

[in] _Addend

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

[in] _Increment

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

Requirement Value
Minimum supported client 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.
Target Platform Desktop
Header ndis.h (include Ndis.h)
IRQL Any level

See also

MiniportInterrupt