函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mem_cgroup_move_swap_account - move swap charge and swap_cgroup's record

函数原型:static int mem_cgroup_move_swap_account(swp_entry_t entry, struct mem_cgroup *from, struct mem_cgroup *to)

返回类型:int

参数:

类型参数名称
swp_entry_tentry
struct mem_cgroup *from
struct mem_cgroup *to
2969  old_id等于mem_cgroup_id(from)
2970  new_id等于mem_cgroup_id(to)
2972  如果swap_cgroup_cmpxchg(entry, old_id, new_id)恒等于old_id
2973  dx can be of type enum memcg_stat_item or node_stat_item
2974  dx can be of type enum memcg_stat_item or node_stat_item
2975  返回:0
2977  返回:负EINVAL
调用者
名称描述
mem_cgroup_move_charge_pte_range