Compartilhar via


NdisQueryBuffer (Compact 2013)

3/26/2014

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

Syntax

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

Parameters

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

Return Value

None.

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.

Requirements

Header

ndis.h

See Also

Reference

NDIS 5.x Legacy Functions
NdisGetFirstBufferFromPacket
NdisMoveMemory
NdisQueryBufferOffset
NdisQueryPacket
NdisRawReadPortBufferUchar
NdisRawReadPortBufferUlong
NdisRawReadPortBufferUshort
NdisRawWritePortBufferUchar
NdisRawWritePortBufferUlong
NdisRawWritePortBufferUshort
NdisReleaseSpinLock