Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mem_cgroup_scan_tasks - iterate over tasks of a memory cgroup hierarchy*@memcg: hierarchy root*@fn: function to call for each task*@arg: argument passed to @fn* This function iterates over tasks attached to @memcg or to any of its

Proto:int mem_cgroup_scan_tasks(struct mem_cgroup *memcg, int (*fn)(struct task_struct *, void *), void *arg)

Type:int

Parameter:

TypeParameterName
struct mem_cgroup *memcg
int (*fn
void *arg
1182  ret = 0
1184  BUG_ON(memcg == root_mem_cgroup)
1190  ss_task_iter_start - initiate task iteration*@css: the css to walk tasks of*@flags: CSS_TASK_ITER_* flags*@it: the task iterator to use* Initiate iteration through the tasks of @css
1191  When Not ret && (task = ss_task_iter_next - return the next task for the iterator*@it: the task iterator being iterated* The "next" function for task iteration. @it should have been* initialized via css_task_iter_start(). Returns NULL when the iteration* reaches the end.) cycle
1192  ret = fn(task, arg)
1193  ss_task_iter_end - finish task iteration*@it: the task iterator to finish* Finish task iteration started by css_task_iter_start().
1194  If ret Then
1195  mem_cgroup_iter_break - abort a hierarchy walk prematurely*@root: hierarchy root*@prev: last visited hierarchy member as returned by mem_cgroup_iter()
1196  Break
1199  Return ret
Caller
NameDescribe
dump_tasksdump_tasks - dump current memory state of all system tasks*@oc: pointer to struct oom_control* Dumps the current memory state of all eligible tasks. Tasks not in the same* memcg, not in the same cpuset, or bound to a disjoint set of mempolicy nodes
oom_kill_process