Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mem_cgroup_move_swap_account - move swap charge and swap_cgroup's record

Proto:static int mem_cgroup_move_swap_account(swp_entry_t entry, struct mem_cgroup *from, struct mem_cgroup *to)

Type:int

Parameter:

TypeParameterName
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  If swap_cgroup_cmpxchg(entry, old_id, new_id) == old_id Then
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  Return 0
2977  Return -EINVAL
Caller
NameDescribe
mem_cgroup_move_charge_pte_range