Expand description
Physical memory information.
Structs§
- MemRegion
Flags - The flags of a physical memory region.
- Phys
MemRegion - A physical memory region.
Constants§
- DEFAULT_
MMIO_ FLAGS - The default flags for a MMIO region (readable, writable, device, and reserved).
- DEFAULT_
RAM_ FLAGS - The default flags for a normal memory region (readable, writable and allocatable).
- DEFAULT_
RESERVED_ FLAGS - The default flags for a reserved memory region (readable, writable, and reserved).
Traits§
- MemIf
- Physical memory interface.
Functions§
- check_
sorted_ ranges_ overlap - Checks if the given ranges are overlapping.
- mmio_
ranges - Returns all device memory (MMIO) ranges on the platform.
- phys_
ram_ ranges - Returns all physical memory (RAM) ranges on the platform.
- ranges_
difference - Removes a portion of ranges from the given ranges.
- reserved_
phys_ ram_ ranges - Returns all reserved physical memory ranges on the platform.
- total_
ram_ size - Returns the total size of physical memory (RAM) on the platform.
Type Aliases§
- Overlap
Err - The error type for overlapping check.
- RawRange
- The raw memory range with start and size.