Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\huge_mm.h Create Date:2022-07-28 05:43:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:is_swap_pmd

Proto:static inline int is_swap_pmd(pmd_t pmd)

Type:int

Parameter:

TypeParameterName
pmd_tpmd
212  Return Not pmd_none(pmd) && Not pmd_present(pmd)
Caller
NameDescribe
copy_pmd_range
zap_pmd_range
__handle_mm_faultBy the time we get here, we already hold the mm semaphore* The mmap_sem may have been released depending on flags and our* return value. See filemap_fault() and __lock_page_or_retry().
change_pmd_range
move_page_tables
__pmd_trans_huge_lockReturns page table lock pointer if a given pmd maps a thp, NULL otherwise.* Note that if it returns page table lock pointer, this routine returns without* unlocking page table lock. So callers must unlock it.
get_mctgt_type_thpWe don't consider PMD mapped swapping or file mapped pages because THP does* not support them for now.* Caller should make sure that pmd_trans_huge(pmd) is true.