Bewerken

Delen via


MmInitializeMdl function (wdm.h)

The MmInitializeMdl macro initializes the header of an MDL.

Syntax

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

Parameters

[in] MemoryDescriptorList

A pointer to the buffer to initialize as an MDL. For more information, see the following section.

[in] BaseVa

A pointer to the base virtual address of a buffer.

[in] Length

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

Requirement Value
Minimum supported client Windows 2000
Header wdm.h
IRQL <= DISPATCH_LEVEL