Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:khugepaged_enter_vma_merge

Proto:int khugepaged_enter_vma_merge(struct vm_area_struct *vma, unsigned long vm_flags)

Type:int

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned longvm_flags
474  If Not hugepage_vma_check(vma, vm_flags) Then Return 0
477  hstart = Our start address within vm_mm. + ~HPAGE_PMD_MASK & HPAGE_PMD_MASK
478  hend = The first byte after our end addresswithin vm_mm. & HPAGE_PMD_MASK
479  If hstart < hend Then Return khugepaged_enter(vma, vm_flags)
481  Return 0
Caller
NameDescribe
vma_mergeGiven a mapping request (addr,end,vm_flags,file,pgoff), figure out* whether that can be merged with its predecessor or its successor
expand_downwardsvma is the first one with address < vma->vm_start. Have to extend vma.
hugepage_madvise