Share via


NdisCreateLookaheadBufferFromSharedMemory (Windows Embedded CE 6.0)

1/6/2010

This function returns the virtual address of a buffer within a block of memory shared with a bus master DMA NIC.

Syntax

VOID teLookaheadBufferFromSharedMemory(
  PVOID pSharedMemory,
  UINT LookaheadLength,
  PVOID* pLookaheadBuffer
);

Parameters

  • pSharedMemory
    [in] Specifies the base address of the shared memory range containing the data for the look-ahead buffer.
  • LookaheadLength
    [in] Specifies the length in bytes for the lookahead buffer.
  • pLookaheadBuffer
    [out] Points to a caller-supplied variable in which this function returns the virtual address of the lookahead buffer.

Return Value

None.

Remarks

NdisCreateLookaheadBufferFromSharedMemory provides a lookahead buffer that is a virtual memory copy of shared memory for miniport receive indications. To bound protocol drivers, such a lookahead buffer represents a read-only version of the shared memory.

This function accommodates system architectures that do not allow the NIC driver to read shared memory on a network interface card directly.

Requirements

Header ndis.h
Library ndis.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

NDIS Library Functions
NdisDestroyLookaheadBufferFromSharedMemory
NdisMEthIndicateReceive
NdisMTrIndicateReceive
NdisMWanIndicateReceive