Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:oom_reaper

Proto:static int oom_reaper(void *unused)

Type:int

Parameter:

TypeParameterName
void *unused
640  When (true) cycle
641  struct task_struct * tsk = NULL
643  wait_event_freezable - sleep (or freeze) until a condition gets true*@wq_head: the waitqueue to wait on*@condition: a C expression for the event to wait for* The process is put to sleep (TASK_INTERRUPTIBLE -- so as not to contribute(oom_reaper_wait, oom_reaper_list != NULL)
644  spin_lock( & oom_reaper_lock)
645  If (oom_reaper_list != NULL) Then
649  spin_unlock( & oom_reaper_lock)
651  If tsk Then oom_reap_task(tsk)
655  Return 0