Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\asm-generic\pgtable.h Create Date:2022-07-28 06:00:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static inline int pmd_none_or_trans_huge_or_clear_bad(pmd_t *pmd)

Type:int

Parameter:

TypeParameterName
pmd_t *pmd
1004  pmdval = pmd_read_atomic(pmd)
1020  The "volatile" is due to gcc bugs ()
1037  If 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) && Not pmd_present(pmdval) Then Return 1
1040  If Value for the false possibility is greater at compile time(pmd_bad(pmdval)) Then
1041  pmd_clear_bad(pmd)
1042  Return 1
1044  Return 0
Caller
NameDescribe
zap_pmd_range
unuse_pmd_range