Bagikan melalui


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
Penunjuk ke MDL.

_VirtualAddress
Penunjuk ke variabel yang disediakan pemanggil di mana makro ini mengembalikan alamat virtual dasar rentang alamat virtual yang dijelaskan oleh 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
Penunjuk ke variabel yang disediakan pemanggil di mana makro ini mengembalikan panjang, dalam byte, dari rentang alamat virtual yang dijelaskan oleh MDL.

_Priority
Nilai prioritas halaman. 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

Didukung di NDIS 6.0 dan yang lebih baru.

Header

Ndis.h (termasuk Ndis.h)

IRQL

<= TINGKAT_PENGIRIMAN

Aturan kepatuhan DDI

Irql_NetBuffer_Function

See also

MmGetSystemAddressForMdlSafe

NdisQueryBuffer