函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__task_will_free_mem

函数原型:static inline bool __task_will_free_mem(struct task_struct *task)

返回类型:bool

参数:

类型参数名称
struct task_struct *task
783  sig等于signal
790  如果see SIGNAL_* flags below 按位与coredump in progress 则返回:false
793  如果see SIGNAL_* flags below 按位与group exit in progress 则返回:true
796  如果thread_group_empty(task)且flags按位与Getting shut down 则返回:true
799  返回: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