Previous Next

NdisMUpdateSharedMemory

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
    );

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.

Headers

Declared in Ndis.h. Include Ndis.h.

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