Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\huge_mm.h Create Date:2022-07-28 05:43:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:transhuge_vma_suitable

Proto:static inline bool transhuge_vma_suitable(struct vm_area_struct *vma, unsigned long haddr)

Type:bool

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned longhaddr
135  If Not vma_is_anonymous(vma) Then
136  If ( 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) Then Return false
141  If haddr < Our start address within vm_mm. || haddr + HPAGE_PMD_SIZE > The first byte after our end addresswithin vm_mm. Then Return false
143  Return true
Caller
NameDescribe
transparent_hugepage_enabled
do_huge_pmd_anonymous_page