NdisQueryBuffer

VOID
    NdisQueryBuffer(

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

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

Parameters

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

Comments

NDIS drivers use NdisQueryBuffer 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 NdisQueryBuffer.

Callers of NdisQueryBuffer run at IRQL <= DISPATCH_LEVEL.

See Also

MiniportHandleInterrupt, MiniportSend, MiniportSendPackets, MiniportTimer, MiniportTransferData, MiniportWanSend, NdisAllocateBuffer, NdisGetFirstBufferFromPacket, NdisMoveFromMappedMemory, NdisMoveMemory, NdisMoveToMappedMemory, NdisQueryBufferOffset, NdisQueryPacket, NdisRawReadPortBufferUchar, NdisRawReadPortBufferUlong, NdisRawReadPortBufferUshort, NdisRawWritePortBufferUchar, NdisRawWritePortBufferUlong, NdisRawWritePortBufferUshort, NdisReleaseSpinLock, NdisUnchainBufferAtBack, NdisUnchainBufferAtFront, ProtocolReceive, ProtocolReceivePacket