MmInitializeMdl - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdm.h

VOID MmInitializeMdl(
  [in] PMDL   MemoryDescriptorList,
  [in] PVOID  BaseVa,
  [in] SIZE_T Length
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-mminitializemdl)

Description

The MmInitializeMdl macro initializes the header of an MDL.

Parameters

MemoryDescriptorList [in]

A pointer to the buffer to initialize as an MDL. For more information, see the following 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.

Remarks

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).