Hi, 

Could anyone please explain, how mmap works underneath ? when kernel traveses pgd->pud->pmd->pte how does it know that a particular page is a mmaped page ? is there any special flag ? 

Thanks,
Neophyte