函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ask->mm can be NULL if the task is the exited group leader. So to* determine whether the task is using a particular mm, we examine all the* task's threads: if one of those is using this mm then this task was also* using it.

函数原型:bool process_shares_mm(struct task_struct *p, struct mm_struct *mm)

返回类型:bool

参数:

类型参数名称
struct task_struct *p
struct mm_struct *mm
494  for_each_thread(p, t)
495  t_mm等于READ_ONCE(mm)
496  如果t_mm则返回:t_mm恒等于mm
499  返回:false
调用者
名称描述
task_will_free_memChecks whether the given task is dying or exiting and likely to* release its address space. This means that all threads and processes* sharing the same mm have to be killed or exiting.* Caller has to make sure that task->mm is stable (hold task_lock or
__oom_kill_process