ExInterlockedAddLargeStatistic macro (wdm.h)

The ExInterlockedAddLargeStatistic routine performs an interlocked addition of a ULONG increment value to a LARGE_INTEGER variable.

Syntax

void ExInterlockedAddLargeStatistic(
  [in]  Addend,
  [in]  Increment
);

Parameters

[in] Addend

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

[in] Increment

Specifies a ULONG value that is added to the variable that Addend points to.

Return value

None

Remarks

Support routines that do interlocked operations must not cause a page fault. Neither their code nor any of the data they access can cause a page fault without bringing down the system.

ExInterlockedAddLargeStatistic masks interrupts, and can be safely used to synchronize an ISR with other driver code.

ExInterlockedAddLargeStatistic runs at any IRQL. The storage for the Addend parameter must be resident at all IRQLs.

Requirements

Requirement Value
Minimum supported client Available starting with Windows 2000.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL Any level (see Remarks section)

See also

ExInterlockedAddLargeInteger

ExInterlockedAddUlong