NdisQueryMdl - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ndis.h

VOID NdisQueryMdl(
    _Mdl,
    _VirtualAddress,
    _Length,
    _Priority
);
View the official Windows hardware development documentation

NtDoc

No description available.

Windows hardware development documentation (ndisquerymdl)

NdisQueryMdl macro

The NdisQueryMdl macro retrieves the buffer length, and optionally the base virtual address, from an MDL.

Parameters

_Mdl A pointer to an MDL.

_VirtualAddress A pointer to a caller-supplied variable in which this macro returns the base virtual address of the virtual address range that is described by the MDL. The base virtual address can be NULL for either of the following reasons:

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

_Priority A page priority value. For a list of the possible values for this parameter, see the Priority parameter of the MmGetSystemAddressForMdlSafe macro.

Return value

None

Remarks

The NdisQueryMdl macro provides an MDL-based version of the NdisQueryBuffer 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

MmGetSystemAddressForMdlSafe

NdisQueryBuffer