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:mmap_sem must be held on entry

Proto:static inline spinlock_t *pmd_trans_huge_lock(pmd_t *pmd, struct vm_area_struct *vma)

Type:spinlock_t

Parameter:

TypeParameterName
pmd_t *pmd
struct vm_area_struct *vma
219  If is_swap_pmd( * pmd) || pmd_trans_huge( * pmd) || pmd_devmap( * pmd) Then Return 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  Else Return NULL
Caller
NameDescribe
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