函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:oom_reap_task

函数原型:static void oom_reap_task(struct task_struct *tsk)

返回类型:void

参数:

类型参数名称
struct task_struct *tsk
610  attempts等于0
611  mm等于oom_mm
614 attempts自加小于MAX_OOM_REAP_RETRIES且非Reaps the address space of the give task.* Returns true on success and false if none or part of the address space* has been reclaimed and the caller should retry later.循环
615  Like schedule_timeout_uninterruptible(), except this task will not contribute* to load average.
617  如果attempts小于等于MAX_OOM_REAP_RETRIESst_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则转到:done
621  打印信息("oom_reaper: unable to reap pid:%d (%s)\n", task_pid_nr(tsk), comm)
623  debug_show_all_locks()
625  done :
626  oom_reaper_list = NULL
632  设置内存位
635  put_task_struct(tsk)
调用者
名称描述
oom_reaper