函数逻辑报告 |
Source Code:mm\memcontrol.c |
Create Date:2022-07-27 17:48:06 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:mem_cgroup_move_charge_pte_range
函数原型:static int mem_cgroup_move_charge_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end, struct mm_walk *walk)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
pmd_t * | pmd | |
unsigned long | addr | |
unsigned long | end | |
struct mm_walk * | walk |
5682 | ret等于0 |
5691 | 如果ptl则 |
5692 | 如果precharge小于HPAGE_PMD_NR则 |
5693 | 自旋锁解锁 |
5694 | 返回:0 |
5696 | target_type等于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. |
5697 | 如果target_type恒等于MC_TARGET_PAGE则 |
5702 | precharge减等于HPAGE_PMD_NR |
5703 | moved_charge加等于HPAGE_PMD_NR |
5708 | 否则如果target_type恒等于MC_TARGET_DEVICE则 |
5712 | precharge减等于HPAGE_PMD_NR |
5713 | moved_charge加等于HPAGE_PMD_NR |
5717 | 自旋锁解锁 |
5718 | 返回:0 |
5723 | retry : |
5724 | pte等于pte_offset_map_lock(The address space we belong to. , pmd, addr, & ptl) |
5727 | bool device = false |
5735 | device = true |
5745 | 如果PageTransCompound returns true for both transparent huge pages* and hugetlbfs pages, so it should only be called when it's known* that hugetlbfs pages aren't involved.则转到:put |
5751 | precharge自减 |
5753 | moved_charge自加 |
5757 | put : |
5759 | 退出 |
5763 | precharge自减 |
5765 | moved_swap自加 |
5767 | 退出 |
5768 | 默认 |
5769 | 退出 |
5772 | pte_unmap_unlock(pte - 1, ptl) |
5773 | cond_resched() |
5787 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |