Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mmap.c Create Date:2022-07-28 14:49:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:find_extend_vma

Proto:struct vm_area_struct *find_extend_vma(struct mm_struct *mm, unsigned long addr)

Type:struct vm_area_struct

Parameter:

TypeParameterName
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  If Not vma Then Return NULL
2536  If Our start address within vm_mm. <= addr Then Return vma
2538  If Not (Flags, see mm.h. & general info on the segment ) Then Return NULL
2541  If Not 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 Then Return NULL
2543  start = Our start address within vm_mm.
2544  If expand_stack(vma, addr) Then Return NULL
2546  If Flags, see mm.h. & VM_LOCKED Then populate_vma_page_range() - populate a range of pages in the vma
2548  Return vma
Caller
NameDescribe
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