Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-28 16:13:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mem_cgroup_count_precharge_pte_range

Proto:static int mem_cgroup_count_precharge_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end, struct mm_walk *walk)

Type:int

Parameter:

TypeParameterName
pmd_t *pmd
unsigned longaddr
unsigned longend
struct mm_walk *walk
5483  vma = vma
5487  ptl = mmap_sem must be held on entry
5488  If ptl Then
5494  If We 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. == MC_TARGET_PAGE Then precharge += HPAGE_PMD_NR
5496  spin_unlock(ptl)
5497  Return 0
5500  If This is a noop if Transparent Hugepage Support is not built into* the kernel Then Return 0
5502  pte = pte_offset_map_lock(The address space we belong to. , pmd, addr, & ptl)
5503  When addr != end cycle If get_mctgt_type - get target type of moving charge*@vma: the vma the pte to be checked belongs*@addr: the address corresponding to the pte to be checked*@ptent: the pte to be checked*@target: the pointer the target page or swap ent will be stored(can be Then
5505  precharge++
5506  pte_unmap_unlock(pte - 1, ptl)
5507  cond_resched()
5509  Return 0