MmGetMdlByteCount macro

The MmGetMdlByteCount macro returns the length, in bytes, of the buffer described by the specified MDL.

Syntax

void MmGetMdlByteCount(
   Mdl
);

Parameters

Mdl

A pointer to an MDL structure that describes the layout of a virtual memory buffer in physical memory. For more information, see Using MDLs.

Return value

None

Remarks

MmGetMdlByteCount returns the length, in bytes, of the buffer described by Mdl.

Callers of MmGetMdlByteCount can be running at any IRQL. Usually, callers are running at IRQL <= DISPATCH_LEVEL.

Requirements

   
Minimum supported client Available starting with Windows 2000.
Target Platform Desktop
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
IRQL Any level (see Remarks section)
DDI compliance rules MdlAfterReqCompletedIntIoctlA, MdlAfterReqCompletedIoctlA, MdlAfterReqCompletedReadA, MdlAfterReqCompletedWriteA

See also

MDL

MmGetMdlByteOffset