Udostępnij przez


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
Wskaźnik na MDL.

_VirtualAddress
Wskaźnik do zmiennej dostarczonej przez wywołującego, w której to makro zwraca podstawowy adres wirtualny zakresu adresów wirtualnych opisanego przez 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
Wskaźnik do zmiennej dostarczonej przez obiekt wywołujący, w której to makro zwraca długość w bajtach zakresu adresów wirtualnych opisanych przez MDL.

_Priority
Wartość priorytetu strony. 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

Obsługiwane w NDIS 6.0 i późniejszych wersjach.

Header

Ndis.h (m.in. Ndis.h)

IRQL

<= DISPATCH_LEVEL

Reguły zgodności DDI

Irql_NetBuffer_Function

See also

MmGetSystemAddressForMdlSafe

NdisQueryBuffer