函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-27 17:47:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mem_cgroup_count_precharge_pte_range

函数原型:static int mem_cgroup_count_precharge_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end, struct mm_walk *walk)

返回类型:int

参数:

类型参数名称
pmd_t *pmd
unsigned longaddr
unsigned longend
struct mm_walk *walk
5483  vma等于vma
5487  ptl等于mmap_sem must be held on entry
5488  如果ptl
5494  如果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_PAGEprecharge加等于HPAGE_PMD_NR
5496  自旋锁解锁
5497  返回:0
5500  如果This is a noop if Transparent Hugepage Support is not built into* the kernel则返回:0
5502  pte等于pte_offset_map_lock(The address space we belong to. , pmd, addr, & ptl)
5503 addr不等于end循环如果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
5505  precharge自加
5506  pte_unmap_unlock(pte - 1, ptl)
5507  cond_resched()
5509  返回:0