Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__task_will_free_mem

Proto:static inline bool __task_will_free_mem(struct task_struct *task)

Type:bool

Parameter:

TypeParameterName
struct task_struct *task
783  sig = signal
790  If see SIGNAL_* flags below & coredump in progress Then Return false
793  If see SIGNAL_* flags below & group exit in progress Then Return true
796  If thread_group_empty(task) && flags & Getting shut down Then Return true
799  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