The MmInitializeMdl macro initializes the header of an MDL.
VOID MmInitializeMdl( [in] PMDL MemoryDescriptorList, [in] PVOID BaseVa, [in] SIZE_T Length );
- MemoryDescriptorList [in]
A pointer to the buffer to initialize as an MDL. For more information, see the following Remarks section.
- BaseVa [in]
A pointer to the base virtual address of a buffer.
- Length [in]
Specifies the length, in bytes, of the buffer to be described by the MDL. This routine supports a maximum buffer length of MAXULONG bytes.
The buffer that MemoryDescriptorList points to must be allocated in nonpaged memory. The size, in bytes, of this buffer must be at least sizeof(MDL) + sizeof(PFN_NUMBER)*ADDRESS_AND_SIZE_TO_SPAN_PAGES(BaseVa, Length).
|Available in Windows 2000 and later versions of Windows.|