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: be used on vmas which are known to support THP.* Use transparent_hugepage_enabled otherwise

Proto:static inline bool __transparent_hugepage_enabled(struct vm_area_struct *vma)

Type:bool

Parameter:

TypeParameterName
struct vm_area_struct *vma
100  If Flags, see mm.h. & MADV_NOHUGEPAGE marked this vma Then Return false
103  If is_vma_temporary_stack(vma) Then Return false
106  If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Return false
109  If transparent_hugepage_flags & 1 << TRANSPARENT_HUGEPAGE_FLAG Then Return true
117  If vma_is_dax(vma) Then Return true
120  If transparent_hugepage_flags & 1 << TRANSPARENT_HUGEPAGE_REQ_MADV_FLAG Then Return Not Not (Flags, see mm.h. & MADV_HUGEPAGE marked this vma )
124  Return false
Caller
NameDescribe
__handle_mm_faultBy the time we get here, we already hold the mm semaphore* The mmap_sem may have been released depending on flags and our* return value. See filemap_fault() and __lock_page_or_retry().
transparent_hugepage_enabled
do_huge_pmd_wp_page