Condividi tramite


NdisQueryMdl macro

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

Syntax

VOID NdisQueryMdl(
    _Mdl,
    _VirtualAddress,
    _Length,
    _Priority
);

Parameters

_Mdl
Puntatore a un MDL.

_VirtualAddress
Puntatore a una variabile fornita dal chiamante in cui questa macro restituisce l'indirizzo virtuale di base dell'intervallo di indirizzi virtuali descritto dal linguaggio MDL. The base virtual address can be NULL for either of the following reasons:

  • System resources are low or exhausted and the _Priority parameter is set to LowPagePriority or NormalPagePriority.

  • System resources are exhausted and the _Priority parameter is set to HighPagePriority.

_Length
Puntatore a una variabile fornita dal chiamante in cui questa macro restituisce la lunghezza, in byte, dell'intervallo di indirizzi virtuali descritto dal linguaggio MDL.

_Priority
Valore di priorità di pagina. 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

Supportato in NDIS 6.0 e versioni successive.

Header

Ndis.h (includere Ndis.h)

IRQL

<= LIVELLO_DI_INVIO

Regole di conformità DDI

Irql_NetBuffer_Function

See also

MmGetSystemAddressForMdlSafe

NdisQueryBuffer