Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:transparent_hugepage_enabled

Proto:bool transparent_hugepage_enabled(struct vm_area_struct *vma)

Type:bool

Parameter:

TypeParameterName
struct vm_area_struct *vma
68  addr = (The first byte after our end addresswithin vm_mm. & HPAGE_PMD_MASK) - HPAGE_PMD_SIZE
70  If Not transhuge_vma_suitable(vma, addr) Then Return false
72  If vma_is_anonymous(vma) Then Return be used on vmas which are known to support THP.* Use transparent_hugepage_enabled otherwise
74  If vma_is_shmem(vma) Then Return shmem_huge_enabled(vma)
77  Return false