Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:always: directly stall for all thp allocations* defer: wake kswapd and fail if not immediately available* defer+madvise: wake kswapd and directly stall for MADV_HUGEPAGE, otherwise* fail if not immediately available* madvise: directly stall for

Proto:static inline gfp_t alloc_hugepage_direct_gfpmask(struct vm_area_struct *vma)

Type:gfp_t

Parameter:

TypeParameterName
struct vm_area_struct *vma
666  vma_madvised = Not Not (Flags, see mm.h. & MADV_HUGEPAGE marked this vma )
669  If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Return GFP_TRANSHUGE | If vma_madvised Then 0 Else __GFP_NORETRY
673  If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Return GFP_TRANSHUGE_LIGHT | kswapd can wake
677  If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Return GFP_TRANSHUGE_LIGHT | If vma_madvised Then Caller can reclaim Else kswapd can wake
683  If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Return GFP_TRANSHUGE_LIGHT | If vma_madvised Then Caller can reclaim Else 0
687  Return GFP_TRANSHUGE_LIGHT
Caller
NameDescribe
do_huge_pmd_anonymous_page
do_huge_pmd_wp_page