largest virtual memory area (VMA)


Write a C program, namely largest_vma_range.c, which uses a system call, largest_vma_range( ) to report the largest VMA range (vm_end - vm_start) among all VMAs contained in a process specified by its process id.

So for example, if a process has 10 VMAs, then find the one (out of 10) whose range (vm_end - vm_start) is the largest among all the 10 VMAs contained in the process.



shell> Please enter the process id

shell> 128 (input by the user)

shell> The VMA with the largest range contained in the process id 128 has XXXX bytes starting from XXXX(vm_start) to XXXX(vm_end).