Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\nommu.c Create Date:2022-07-28 14:36:56
Last Modify:2020-03-17 21:26:27 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:look up the first VMA exactly that exactly matches addr* - should be called with mm->mmap_sem at least held readlocked

Proto:static struct vm_area_struct *find_vma_exact(struct mm_struct *mm, unsigned long addr, unsigned long len)

Type:struct vm_area_struct

Parameter:

TypeParameterName
struct mm_struct *mm
unsigned longaddr
unsigned longlen
758  end = addr + len
761  vma = vmacache_find_exact(mm, addr, end)
762  If vma Then Return vma
767  When vma cycle
768  If Our start address within vm_mm. < addr Then Continue
770  If Our start address within vm_mm. > addr Then Return NULL
774  Return vma
778  Return NULL
Caller
NameDescribe
do_mremapxpand (or shrink) an existing mapping, potentially moving it at the same* time (controlled by the MREMAP_MAYMOVE flag and available VM space)* under NOMMU conditions, we only permit changing a mapping's size, and only* as long as it stays within the