Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static inline int pmd_none_or_clear_bad_unless_trans_huge(pmd_t *pmd)

Type:int

Parameter:

TypeParameterName
pmd_t *pmd
170  pmdval = pmd_read_atomic(pmd)
174  The "volatile" is due to gcc bugs ()
177  If pmd_none(pmdval) Then Return 1
179  If pmd_trans_huge(pmdval) Then Return 0
181  If Value for the false possibility is greater at compile time(pmd_bad(pmdval)) Then
182  pmd_clear_bad(pmd)
183  Return 1
186  Return 0
Caller
NameDescribe
change_pmd_range