函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:transparent_hugepage_enabled

函数原型:bool transparent_hugepage_enabled(struct vm_area_struct *vma)

返回类型:bool

参数:

类型参数名称
struct vm_area_struct *vma
68  addr等于The first byte after our end addresswithin vm_mm. 按位与HPAGE_PMD_MASK的值减HPAGE_PMD_SIZE
70  如果非transhuge_vma_suitable(vma, addr)则返回:false
72  如果vma_is_anonymous(vma)则返回: be used on vmas which are known to support THP.* Use transparent_hugepage_enabled otherwise
74  如果vma_is_shmem(vma)则返回:shmem_huge_enabled(vma)
77  返回:false