NdisMUpdateSharedMemory

VOID
NdisMUpdateSharedMemory(
IN NDIS_HANDLE
MiniportAdapterHandle,
IN ULONG Length,
IN PVOID VirtualAddress,
IN NDIS_PHYSICAL_ADDRESS PhysicalAddress
);

NdisMUpdateSharedMemory ensures that data, just transferred from a busmaster NIC, to be read from driver-allocated shared memory is current.

Parameters

MiniportAdapterHandle

Specifies the handle originally input to MiniportInitialize.

Length

Specifies the number of bytes in the range.

VirtualAddress

Specifies the base virtual address within a range returned by NdisMAllocateSharedMemory or NdisMAllocateSharedMemoryAsync.

PhysicalAddress

Specifies the physical address mapped to VirtualAddress.

Comments

NdisMUpdateSharedMemory guarantees that any data written by the NIC is present in host physical memory at the virtual address returned by NdisMAllocateSharedMemory or NdisMAllocateSharedMemoryAsync on certain platforms. On any other platform, a call to NdisMUpdateSharedMemory has no overhead.

Callers of NdisMUpdateSharedMemory run at IRQL <= DISPATCH_LEVEL.

See Also

MiniportInitialize, NdisFlushBuffer, NdisMAllocateMapRegisters, NdisMAllocateSharedMemory, NdisMAllocateSharedMemoryAsync, NdisMFreeSharedMemory, NdisMStartBufferPhysicalMapping