函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\huge_mm.h Create Date:2022-07-27 06:44:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:transhuge_vma_suitable

函数原型:static inline bool transhuge_vma_suitable(struct vm_area_struct *vma, unsigned long haddr)

返回类型:bool

参数:

类型参数名称
struct vm_area_struct *vma
unsigned longhaddr
135  如果非vma_is_anonymous(vma)则
136  如果Our start address within vm_mm. 右移PAGE_SHIFT determines the page size 位按位与HPAGE_CACHE_INDEX_MASK的值不等于Offset (within vm_file) in PAGE_SIZEunits 按位与HPAGE_CACHE_INDEX_MASK的值则返回:false
141  如果haddr小于Our start address within vm_mm. haddrHPAGE_PMD_SIZE大于The first byte after our end addresswithin vm_mm. 则返回:false
143  返回:true
调用者
名称描述
transparent_hugepage_enabled
do_huge_pmd_anonymous_page