Expand Minimize

MmSizeOfMdl routine

The MmSizeOfMdl routine returns the number of bytes to allocate for an MDL describing a given address range.

Syntax


SIZE_T MmSizeOfMdl(
  _In_  PVOID Base,
  _In_  SIZE_T Length
);

Parameters

Base [in]

Pointer to the base virtual address for the range.

Length [in]

Supplies the size, in bytes, of the range.

Return value

MmSizeOfMdl returns the number of bytes required to contain the MDL.

Remarks

Memory for the MDL itself must be allocated from nonpaged pool.

Requirements

Version

Available starting with Windows 2000.

Header

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

Library

Ntoskrnl.lib

IRQL

Any level

See also

MmCreateMdl
MmInitializeMdl

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft