函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:look up the first VMA in which addr resides, NULL if none* - should be called with mm->mmap_sem at least held readlocked

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

返回类型:struct vm_area_struct

参数:

类型参数名称
struct mm_struct *mm
unsigned longaddr
712  vma等于vmacache_find(mm, addr)
713  如果此条件成立可能性大(为编译器优化)(vma)则返回:vma
718 vma循环
719  如果Our start address within vm_mm. 大于addr则返回:NULL
723  返回:vma
727  返回:NULL
调用者
名称描述
arch_get_unmapped_area
prctl_set_mm
ksys_shmdtdetach and kill segment if marked destroyed.* The work is done in shm_close.
shift_arg_pagesDuring bprm_mm_init(), we create a temporary stack at STACK_TOP_MAX. Once* the binfmt code determines where the new stack should reside, we shift it to* its final location. The process proceeds as follows:* 1) Use shift to calculate the new vma endpoints.