Bewerken

Delen via


NdisZeroMappedMemory macro (ndis.h)

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

Syntax

void NdisZeroMappedMemory(
  [in]  Destination,
  [in]  Length
);

Parameters

[in] Destination

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

[in] Length

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

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

See also

MiniportInitializeEx

NdisMMapIoSpace

NdisZeroMemory