函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:khugepaged_enter_vma_merge

函数原型:int khugepaged_enter_vma_merge(struct vm_area_struct *vma, unsigned long vm_flags)

返回类型:int

参数:

类型参数名称
struct vm_area_struct *vma
unsigned longvm_flags
474  如果非hugepage_vma_check(vma, vm_flags)则返回: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  如果hstart小于hend则返回:khugepaged_enter(vma, vm_flags)
481  返回:0
调用者
名称描述
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