函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ancels all extra charges on mc.from and mc.to, and wakes up all waiters.

函数原型:static void __mem_cgroup_clear_mc(void)

返回类型:void

参数:

5542  from等于from
5543  to等于to
5546  如果precharge
5547  cancel_charge(to, precharge)
5548  precharge等于0
5554  如果moved_charge
5555  cancel_charge(from, moved_charge)
5556  moved_charge等于0
5559  如果moved_swap
5561  如果非mem_cgroup_is_root(from)则page_counter_uncharge - hierarchically uncharge pages*@counter: counter*@nr_pages: number of pages to uncharge
5564  mem_cgroup_id_put_many(from, moved_swap)
5570  如果非mem_cgroup_is_root(to)则page_counter_uncharge - hierarchically uncharge pages*@counter: counter*@nr_pages: number of pages to uncharge
5573  mem_cgroup_id_get_many(to, moved_swap)
5574  设置一个css引用
5576  moved_swap等于0
5578  memcg_oom_recover(from)
5579  memcg_oom_recover(to)
5580  wake_up_all( & a waitq for other context )
调用者
名称描述
mem_cgroup_clear_mc
mem_cgroup_move_charge