Compartir a través de


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
Puntero a un MDL.

_VirtualAddress
Puntero a una variable proporcionada por el autor de la llamada en la que esta macro devuelve la dirección virtual base del intervalo de direcciones virtuales descrito por 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
Puntero a una variable proporcionada por el autor de la llamada en la que esta macro devuelve la longitud, en bytes, del intervalo de direcciones virtuales descrito por MDL.

_Priority
Valor de prioridad de página. 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

Se admite en NDIS 6.0 y versiones posteriores.

Header

Ndis.h (incluya Ndis.h)

IRQL

<= DISPATCH_LEVEL

Reglas de cumplimiento de DDI

Irql_NetBuffer_Function

See also

MmGetSystemAddressForMdlSafe

NdisQueryBuffer