NdisZeroMappedMemory function

NdisZeroMappedMemory fills a block of memory that was mapped with a preceding call to NdisMMapIoSpace with zeros.

Syntax


VOID NdisZeroMappedMemory(
  _In_ PVOID Destination,
  _In_ ULONG Length
);

Parameters

Destination [in]

Specifies the base virtual address of a block of mapped memory.

Length [in]

Specifies the number of bytes to be filled with zeros.

Return value

None

Remarks

A miniport driver can call NdisZeroMappedMemory to zero-initialize mapped device memory. The given Destination and Length must be a proper subrange of the range specified when the driver called NdisMMapIoSpace.

NdisZeroMappedMemory is optimized, and a miniport driver can call this function any time that it needs to clear a mapped memory range.

Requirements

Target platform

Universal

Version

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

Header

Ndis.h (include Ndis.h)

IRQL

Any level

See also

MiniportInitializeEx
NdisMMapIoSpace
NdisZeroMemory

 

 

Send comments about this topic to Microsoft

Show: