Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:bool process_shares_mm(struct task_struct *p, struct mm_struct *mm)

Type:bool

Parameter:

TypeParameterName
struct task_struct *p
struct mm_struct *mm
494  for_each_thread(p, t)
495  t_mm = READ_ONCE(mm)
496  If t_mm Then Return t_mm == mm
499  Return false
Caller
NameDescribe
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