MmSizeOfMdl - NtDoc

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

SIZE_T MmSizeOfMdl(
  [in] PVOID  Base,
  [in] SIZE_T Length
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

MmSizeOfMdl function

Description

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

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.

See also

MmCreateMdl

MmInitializeMdl