Contents

getDeviceMemoryWithIndex

Returns an instance of IODeviceMemory representing one of a device's memory mapped ranges.

Declaration

virtual IODeviceMemory * getDeviceMemoryWithIndex(
 unsigned intindex );

Parameters

  • index:

    An index into the array of ranges assigned to the device.

Return Value

A pointer to an instance of IODeviceMemory, or zero if the index is beyond the count available. The IODeviceMemory is retained by the provider, so is valid while attached, or while any mappings to it exist. It should not be released by the caller. See also mapDeviceMemoryWithIndex, which creates a device memory mapping.

Overview

This method returns a pointer to an instance of IODeviceMemory for the physical memory range at the given index for a memory mapped device.

See Also

Miscellaneous