函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:wake_oom_reaper

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

返回类型:void

参数:

类型参数名称
struct task_struct *tsk
661  如果st_and_set_bit - Set a bit and return its old value*@nr: Bit to set*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier).则返回
664  get_task_struct(tsk)
666  加自旋锁
667  oom_reaper_list等于oom_reaper_list
668  oom_reaper_list等于tsk
669  自旋锁解锁
670  trace_wake_reaper(pid)
671  wake_up( & oom_reaper_wait)
调用者
名称描述
__oom_kill_process
oom_kill_process
out_of_memory_of_memory - kill the "best" process when we run out of memory*@oc: pointer to struct oom_control* If we run out of memory, we have the choice between either* killing a random task (bad), letting the system crash (worse)