函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\gfp.h Create Date:2022-07-27 06:40:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:gfpflags_to_migratetype

函数原型:static inline int gfpflags_to_migratetype(const gfp_t gfp_flags)

返回类型:int

参数:

类型参数名称
const gfp_tgfp_flags
310  VM_WARN_ON((gfp_flags & Convert GFP flags to their corresponding migrate type ) == Convert GFP flags to their corresponding migrate type )
311  BUILD_BUG_ON - break compile if a condition is true((1UL << GFP_MOVABLE_SHIFT) != ___GFP_MOVABLE)
312  BUILD_BUG_ON - break compile if a condition is true((___GFP_MOVABLE >> GFP_MOVABLE_SHIFT) != MIGRATE_MOVABLE)
314  如果此条件成立可能性小(为编译器优化)(page_group_by_mobility_disabled)则返回:MIGRATE_UNMOVABLE
318  返回:gfp_flags按位与Convert GFP flags to their corresponding migrate type 的值右移GFP_MOVABLE_SHIFT
调用者
名称描述
gfp_to_alloc_flags
prepare_alloc_pages
pagetypeinfo_showmixedcount_print
print_page_owner
__dump_page_owner