函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This function is meant to be used by sites walking pagetables with* the mmap_sem hold in read mode to protect against MADV_DONTNEED and* transhuge page faults

函数原型:static inline int pmd_none_or_trans_huge_or_clear_bad(pmd_t *pmd)

返回类型:int

参数:

类型参数名称
pmd_t *pmd
1004  pmdval等于pmd_read_atomic(pmd)
1020  The "volatile" is due to gcc bugs ()
1037  如果pmd_none(pmdval)或pmd_trans_huge(pmdval)或IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_ARCH_ENABLE_THP_MIGRATION)且非pmd_present(pmdval)则返回:1
1040  如果此条件成立可能性小(为编译器优化)(pmd_bad(pmdval))则
1041  pmd_clear_bad(pmd)
1042  返回:1
1044  返回:0
调用者
名称描述
zap_pmd_range
unuse_pmd_range
pmd_trans_unstableThis is a noop if Transparent Hugepage Support is not built into* the kernel