NDIS_BUFFER_TO_SPAN_PAGES

This macro determines how many physical pages of memory are being used to back a specified buffer.

At a Glance

Header file: Ndis.h
Windows CE versions: 2.0 and later

Syntax

ULONG NDIS_BUFFER_TO_SPAN_PAGES( IN PNDIS_BUFFER Buffer );

Parameters

Buffer
Specifies the buffer descriptor mapping the buffer.

Return Values

The Windows CE version of this macro always returns 1.

Remarks

This macro is used by DMA drivers to determine how many physical discontiguities exist in a specified virtual buffer.

A driver that uses this macro can be running at any IRQL.