VOID
NdisQueryBufferOffset(
IN PNDIS_BUFFER Buffer,
OUT PUINT Offset,
OUT PUINT Length
);
NdisQueryBufferOffset retrieves the base virtual address of the range specified in a given buffer descriptor.
NdisQueryBufferOffset returns the offset within a physical page at which a given buffer begins. Usually, the buffer descriptor was part of a packet chain.
NdisQueryBufferOffset runs faster than NdisQueryBuffer. NDIS drivers call NdisQueryBufferOffset in situations where they need to constrain packets by certain criteria. For example, NdisQueryBufferOffset can be used to determine if a buffer crosses a page boundary, if it is odd-byte aligned, and so forth.
Callers of NdisQueryBufferOffset run at IRQL <= DISPATCH_LEVEL.
NdisAllocateBuffer, NdisQueryBuffer, NdisQueryPacket, NdisUnchainBufferAtBack, NdisUnchainBufferAtFront