函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\oom_kill.c Create Date:2022-07-27 15:29:11
Last Modify:2022-05-23 13:16:41 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dump_task

函数原型:static int dump_task(struct task_struct *p, void *arg)

返回类型:int

参数:

类型参数名称
struct task_struct *p
void *arg
382  oc等于arg
385  如果rn true if the task is not adequate as candidate victim task. 则返回:0
389  如果非is_memcg_oom(oc)且非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 则返回: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  如果非task
399  返回:0
402  打印信息("[%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  返回:0
调用者
名称描述
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