Export (0) Print
Expand All
Expand Minimize

ExInterlockedAddLargeStatistic routine

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

Syntax


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

Parameters

Addend [in]

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

Increment [in]

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

Version

Available starting with Windows 2000.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

Any level (see Remarks section)

See also

ExInterlockedAddLargeInteger
ExInterlockedAddUlong

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft