Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\oom_kill.c Create Date:2022-07-28 14:06:01
Last Modify:2022-05-23 13:16:41 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dump_task

Proto:static int dump_task(struct task_struct *p, void *arg)

Type:int

Parameter:

TypeParameterName
struct task_struct *p
void *arg
382  oc = arg
385  If rn true if the task is not adequate as candidate victim task. Then Return 0
389  If Not is_memcg_oom(oc) && Not m_cpuset_eligible() - check task eligiblity for kill*@start: task struct of which task to consider*@oc: pointer to struct oom_control* Task eligibility is determined by whether or not a candidate task, @tsk,* shares the same mempolicy nodes as current if Then Return 0
392  task = The process p may have detached its own ->mm while exiting or through* use_mm(), but one or more of its subthreads may still have a valid* pointer. Return p, or any of its subthreads with a valid ->mm, with* task_lock() held.
393  If Not task Then
399  Return 0
402  pr_info("[%7d] %5d %5d %8lu %8lu %8ld %8lu %5hd %s\n", pid, from_kuid( & userns count is 1 for root user, 1 for init_uts_ns,* and 1 for... ?, task_uid(task)), tgid, total_vm, get_mm_rss(mm), mm_pgtables_bytes(mm), per-process(per-mm_struct) statistics., oom_score_adj, comm)
408  task_unlock(task)
410  Return 0
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