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
MDL 的指標。
_VirtualAddress
呼叫端提供的變數指標,此巨集會傳回 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
呼叫端提供的變數指標,此巨集會傳回 MDL 描述的虛擬位址範圍的長度(以位元組為單位)。
_Priority
頁面優先順序值。 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 |
NDIS 6.0 及之後的版本均支援。 |
Header |
Ndis.h (包括 Ndis.h) |
IRQL |
<= DISPATCH_LEVEL |
DDI 合規性規則 |
Irql_NetBuffer_Function |