函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:A routine for checking "mem" is under move_account() or not.* Checking a cgroup is mc.from or mc.to or under hierarchy of* moving cgroups. This is for waiting at high-memory pressure* caused by "move".

函数原型:static bool mem_cgroup_under_move(struct mem_cgroup *memcg)

返回类型:bool

参数:

类型参数名称
struct mem_cgroup *memcg
1323  bool ret = false
1328  加自旋锁
1329  from等于from
1330  to等于to
1331  如果非from则转到:unlock
1334  ret等于mem_cgroup_is_descendant(from, memcg)或mem_cgroup_is_descendant(to, memcg)
1336  unlock :
1337  自旋锁解锁
1338  返回:ret
调用者
名称描述
mem_cgroup_wait_acct_move