函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static inline gfp_t alloc_hugepage_direct_gfpmask(struct vm_area_struct *vma)

返回类型:gfp_t

参数:

类型参数名称
struct vm_area_struct *vma
666  vma_madvised等于非非Flags, see mm.h. 按位与MADV_HUGEPAGE marked this vma 的值
669  如果st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则返回:GFP_TRANSHUGE按位或如果vma_madvised则0否则__GFP_NORETRY
673  如果st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则返回:GFP_TRANSHUGE_LIGHT按位或kswapd can wake
677  如果st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则返回:GFP_TRANSHUGE_LIGHT按位或如果vma_madvisedCaller can reclaim 否则kswapd can wake
683  如果st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则返回:GFP_TRANSHUGE_LIGHT按位或如果vma_madvisedCaller can reclaim 否则0
687  返回:GFP_TRANSHUGE_LIGHT
调用者
名称描述
do_huge_pmd_anonymous_page
do_huge_pmd_wp_page