Share via


NdisMoveToMappedMemory

This function copies data from a system-space buffer to device memory that was mapped during initialization with the NdisMMapIoSpace function.

VOID NdisMoveToMappedMemory(
  PVOID Destination,
  PVOID Source,
  ULONG Length
);

Parameters

  • Destination
    [out] Specifies the base virtual address within a mapped device memory range where the copy should begin. This address must fall at least Length bytes from the end of the mapped range.
  • Source
    [in] Pointer to a system-space buffer from which this function copies data to the destination range. This buffer must be at least Length bytes in size.
  • Length
    [in] Specifies the number of bytes to copy.

Return Values

None.

Remarks

An NIC driver calls this function to copy data from a buffer in the host to mapped device memory, as, for example, when transferring data from a protocol-supplied buffer or miniport-allocated staging buffer to the NIC for a transmit.

Both the Source and Destination pointers are virtual addresses. The virtual range specified by Destination and Length must fall within a range that was mapped with the NdisMMapIoSpace function.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Ndis.h.
Link Library: Ndis.dll.

See Also

NdisAllocateMemory | NdisMMapIoSpace | NdisMoveFromMappedMemory | NdisMoveMappedMemory | NdisMoveMemory

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.