函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\nommu.c Create Date:2022-07-27 16:03:07
Last Modify:2020-03-17 21:26:27 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:static struct vm_area_struct *find_vma_exact(struct mm_struct *mm, unsigned long addr, unsigned long len)

返回类型:struct vm_area_struct

参数:

类型参数名称
struct mm_struct *mm
unsigned longaddr
unsigned longlen
758  end等于addrlen
761  vma等于vmacache_find_exact(mm, addr, end)
762  如果vma则返回:vma
767 vma循环
768  如果Our start address within vm_mm. 小于addr则继续下一循环
770  如果Our start address within vm_mm. 大于addr则返回:NULL
774  返回:vma
778  返回:NULL
调用者
名称描述
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