VOID
NdisUpdateSharedMemory(
IN NDIS_HANDLE NdisAdapterHandle,
IN ULONG Length,
IN PVOID VirtualAddress,
IN NDIS_PHYSICAL_ADDRESS PhysicalAddress
);
NdisUpdateSharedMemory ensures that data the driver reads from a shared memory region is kept current.
NdisUpdateSharedMemory ensures that any data the network interface card writes is present in physical memory at the virtual address written by NdisAllocateSharedMemory.
For cached shared memory, this function does not ensure that the cache fully reflects physical memory. The NIC driver must flush the cache before the read operation begins and protect the physical memory from access until the read operation has completed.
Callers of NdisUpdateSharedMemory run at IRQL <= DISPATCH_LEVEL.