函数逻辑报告

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

函数名称:mmap_sem must be held on entry

函数原型:static inline spinlock_t *pmd_trans_huge_lock(pmd_t *pmd, struct vm_area_struct *vma)

返回类型:spinlock_t

参数:

类型参数名称
pmd_t *pmd
struct vm_area_struct *vma
219  如果is_swap_pmd( * pmd)或pmd_trans_huge( * pmd)或pmd_devmap( * pmd)则返回:Returns 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.
221  否则返回:NULL
调用者
名称描述
mincore_pte_range
madvise_cold_or_pageout_pte_range
queue_pages_pte_rangeScan through pages checking if pages follow certain conditions,* and move them to the pagelist if they do
madvise_free_huge_pmdReturn true if we do MADV_FREE successfully on entire pmd page.* Otherwise, return false.
mem_cgroup_count_precharge_pte_range
mem_cgroup_move_charge_pte_range