NdisInterlockedAddLargeStatistic (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.
NdisInterlockedAddLargeStatistic 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]
Pointer to a LARGE_INTEGER value that is incremented by the value of Increment.Increment [in]
Specifies a ULONG value that is added to the value to which Addend 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 they access can cause a page fault without bringing down the system.
NdisInterlockedAddLargeStatistic masks interrupts, and can be safely used to synchronize a driver's MiniportISR function with other driver code.
Requirements
Target platform |
Desktop |
Version |
|
Header |
Ndis.h (include Ndis.h) |
IRQL |
Any level |
See also