Contents

getPageCounts

Retrieve the number of resident and/or dirty pages encompassed by a memory descriptor.

Declaration

IOReturn getPageCounts(
 IOByteCount *residentPageCount, 
 IOByteCount *dirtyPageCount);

Parameters

  • residentPageCount:

    - If non-null, a pointer to a byte count that will return the number of resident pages encompassed by this IOMemoryDescriptor.

  • dirtyPageCount:

    - If non-null, a pointer to a byte count that will return the number of dirty pages encompassed by this IOMemoryDescriptor.

Return Value

An IOReturn code.

Overview

This method returns the number of resident and/or dirty pages encompassed by an IOMemoryDescriptor.

See Also

Getting the Memory Pages