函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:find_extend_vma

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

返回类型:struct vm_area_struct

参数:

类型参数名称
struct mm_struct *mm
unsigned longaddr
2532  addr与等于PAGE_MASK
2533  vma等于Look up the first VMA which satisfies addr < vm_end, NULL if none.
2534  如果非vma则返回:NULL
2536  如果Our start address within vm_mm. 小于等于addr则返回:vma
2538  如果非Flags, see mm.h. 按位与general info on the segment 的值则返回:NULL
2541  如果非This has to be called after a get_task_mm()/mmget_not_zero()* followed by taking the mmap_sem for writing before modifying the* vmas or anything the coredump pretends not to change from under it则返回:NULL
2543  start等于Our start address within vm_mm.
2544  如果expand_stack(vma, addr)则返回:NULL
2546  如果Flags, see mm.h. 按位与VM_LOCKEDpopulate_vma_page_range() - populate a range of pages in the vma
2548  返回:vma
调用者
名称描述
fixup_user_faultxup_user_fault() - manually resolve a user page fault*@tsk: the task_struct to use for page fault accounting, or* NULL if faults are not to be recorded