arrayFromList
Constructs an OSArray of IODeviceMemory instances, each describing one physical range, and a tag value.
Declaration
static OSArray * arrayFromList(
InitElement list[],
IOItemCount count );Parameters
- list:
An array of IODeviceMemory::InitElement structures.
- count:
The number of elements in the list.
Return Value
Returns a created OSArray of IODeviceMemory objects, to be released by the caller, or zero on failure.
Overview
This method creates IODeviceMemory instances for each physical range passed in an IODeviceMemory::InitElement array. Each element consists of a physical address, length and tag value for the IODeviceMemory. The instances are returned as a created OSArray.