The virt_to_phys_addrs function translates a virtual memory region into one or more physical memory regions, based on a set of page mappings. At the moment, if the virtual memory region maps to two or more contiguous physical memory regions, we return the full sequence of physical regions. We could make things simpler by merging these contiguous regions into one.
The
virt_to_phys_addrs
function translates a virtual memory region into one or more physical memory regions, based on a set of page mappings. At the moment, if the virtual memory region maps to two or more contiguous physical memory regions, we return the full sequence of physical regions. We could make things simpler by merging these contiguous regions into one.