NdisQueryBuffer

This function retrieves the size of the range from a buffer descriptor and, optionally, its base virtual address.

At a Glance

Header file: Ndis.h
Windows CE versions: 2.0 and later

Syntax

VOID NdisQueryBuffer( IN PNDIS_BUFFER Buffer,
OUT PVOID *VirtualAddress OPTIONAL, OUT PUINT Length );

Parameters

Buffer
Pointer to the buffer descriptor.
VirtualAddress
Pointer to a caller-supplied variable in which this function returns the base virtual address of the range described.
Length
Pointer to to a caller-supplied variable in which this function returns the number of bytes in the virtual range.

Remarks

NDIS drivers use this function to retrieve information from the buffer descriptors chained to incoming packets for subsequent transfer operations.

The driver must release any spin lock it is holding before calling this function.

A driver that calls this function runs at IRQL <= DISPATCH_LEVEL.

See Also

NdisGetFirstBufferFromPacket, NdisMoveFromMappedMemory, NdisMoveMemory, NdisMoveToMappedMemory, NdisQueryBufferOffset, NdisQueryPacket, NdisRawReadPortBufferUchar, NdisRawReadPortBufferUlong, NdisRawReadPortBufferUshort, NdisRawWritePortBufferUchar, NdisRawWritePortBufferUlong, NdisRawWritePortBufferUshort, NdisReleaseSpinLock, NdisUnchainBufferAtBack, NdisUnchainBufferAtFront