Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:wake_oom_reaper

Proto:static void wake_oom_reaper(struct task_struct *tsk)

Type:void

Parameter:

TypeParameterName
struct task_struct *tsk
661  If 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). Then Return
664  get_task_struct(tsk)
666  spin_lock( & oom_reaper_lock)
667  oom_reaper_list = oom_reaper_list
668  oom_reaper_list = tsk
669  spin_unlock( & oom_reaper_lock)
670  trace_wake_reaper(pid)
671  wake_up( & oom_reaper_wait)
Caller
NameDescribe
__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)