NdisMUpdateSharedMemory ensures that data, just transferred from a bus-master NIC, to be read from driver-allocated shared memory is current.
VOID
NdisMUpdateSharedMemory(
IN NDIS_HANDLE MiniportAdapterHandle,
IN ULONG Length,
IN PVOID VirtualAddress,
IN NDIS_PHYSICAL_ADDRESS PhysicalAddress
);
Declared in Ndis.h. Include Ndis.h.
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.
MiniportInitialize, NdisFlushBuffer, NdisMAllocateMapRegisters, NdisMAllocateSharedMemory, NdisMAllocateSharedMemoryAsync, NdisMFreeSharedMemory, NdisMStartBufferPhysicalMapping