MmGetMdlByteCount - NtDoc

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

ULONG MmGetMdlByteCount(
  [in] PMDL Mdl
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

Description

The MmGetMdlByteCount macro returns the length, in bytes, of the buffer described by the specified 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

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

Remarks

Macro definition:

#define MmGetMdlByteCount(Mdl)  ((Mdl)->ByteCount)

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

See also

MDL

MmGetMdlByteOffset

Syntax

ULONG MmGetMdlByteCount(
  [in] PMDL Mdl
);