Finding a region that overlaps a given interval findvmaintersection

The find_vma_intersection( ) function finds the first memory region that overlaps a given linear address interval; the mm parameter points to the memory descriptor of the process, while the start_addr and end_addr linear addresses specify the interval:

vma = find_vma(mm,start_addr); if (vma && end_addr <= vma->vm_start)

The function returns a null pointer if no such region exists. To be exact, if find_vma( ) returns a valid address but the memory region found starts after the end of the linear address interval, vma is set to NULL.

Continue reading here: Finding a free interval archgetunmappedarea

Was this article helpful?

0 0