函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Used when setting automatic NUMA hinting protection where it is* critical that a numa hinting PMD is not confused with a bad PMD.

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

返回类型:int

参数:

类型参数名称
pmd_t *pmd
170  pmdval等于pmd_read_atomic(pmd)
174  The "volatile" is due to gcc bugs ()
177  如果pmd_none(pmdval)则返回:1
179  如果pmd_trans_huge(pmdval)则返回:0
181  如果此条件成立可能性小(为编译器优化)(pmd_bad(pmdval))则
182  pmd_clear_bad(pmd)
183  返回:1
186  返回:0
调用者
名称描述
change_pmd_range