NDIS_MDL_TO_SPAN_PAGES macro

The NDIS_MDL_TO_SPAN_PAGES macro retrieves the number of physical pages of memory that are being used to back a given MDL.

Syntax


int NDIS_MDL_TO_SPAN_PAGES(
   PMDL _Mdl
);

Parameters

_Mdl

A pointer to an MDL.

Return value

NDIS_MDL_TO_SPAN_PAGES returns the number of pages that are backing the virtual range for the MDL.

Remarks

The NDIS_MDL_TO_SPAN_PAGES macro provides an MDL-based version of the NDIS_BUFFER_TO_SPAN_PAGES function.

Requirements

Target platform

Version

Supported in NDIS 6.0 and later.

Header

Ndis.h (include Ndis.h)

IRQL

Any level

See also

NDIS_BUFFER_TO_SPAN_PAGES

 

 

Send comments about this topic to Microsoft

Show: