函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:is_swap_pmd

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

返回类型:int

参数:

类型参数名称
pmd_tpmd
212  返回:非pmd_none(pmd)且非pmd_present(pmd)
调用者
名称描述
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.
pmd_trans_huge_lockmmap_sem must be held on entry