Export (0) Print
Expand All
Expand Minimize

MmInitializeMdl macro

The MmInitializeMdl macro initializes the header of an MDL.

Syntax


VOID MmInitializeMdl(
  [in]  PMDL MemoryDescriptorList,
  [in]  PVOID BaseVa,
  [in]  SIZE_T Length
);

Parameters

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.

Return value

None

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

Requirements

Version

Available in Windows 2000 and later versions of Windows.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

IRQL

<= DISPATCH_LEVEL

See also

ADDRESS_AND_SIZE_TO_SPAN_PAGES
IoAllocateMdl
IoBuildPartialMdl
IoFreeMdl
MmBuildMdlForNonPagedPool
MmCreateMdl
MmPrepareMdlForReuse
MmSizeOfMdl

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft