Function ostd::boot::memory_region::non_overlapping_regions_from

source ยท
pub fn non_overlapping_regions_from(
    regions: &[MemoryRegion],
) -> Vec<MemoryRegion>
Expand description

Truncates regions, resulting in a set of regions that does not overlap.

The truncation will be done according to the type of the regions, that usable and reclaimable regions will be truncated by the unusable regions.