NdisQueryMdlOffset macro

The NdisQueryMdlOffset macro retrieves the offset within a physical page at which a given MDL buffer begins and the length of the buffer.

Syntax

VOID NdisQueryMdlOffset(
    _Mdl,
    _Offset,
    _Length
);

Parameters

_Mdl
A pointer to an MDL.

_Offset
A pointer to a caller-supplied variable in which this macro returns the zero-based byte offset within the physical page that contains the MDL-specified buffer.

_Length
A pointer to a caller-supplied variable in which this macro returns the length, in bytes, of the virtual address range that is specified by the MDL.

Return value

None

Remarks

The NdisQueryMdlOffset macro provides an MDL-based version of the NdisQueryBufferOffset function.

Requirements

Target platform

Desktop

Version

Supported in NDIS 6.0 and later.

Header

Ndis.h (include Ndis.h)

IRQL

<= DISPATCH_LEVEL

DDI compliance rules

Irql_NetBuffer_Function

See also

NdisQueryBufferOffset