Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:m_killer_disable - disable OOM killer*@timeout: maximum timeout to wait for oom victims in jiffies* Forces all page allocations to fail rather than trigger OOM killer

Proto:bool oom_killer_disable(signed long timeout)

Type:bool

Parameter:

TypeParameterName
signed longtimeout
765  If mutex_lock_killable( & Serializes oom killer invocations (out_of_memory()) from all contexts to* prevent from over eager oom killing (e) Then Return false
767  oom_killer_disabled = true
768  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
770  ret = wait_event_interruptible_timeout - sleep until a condition gets true or a timeout elapses*@wq_head: the waitqueue to wait on*@condition: a C expression for the event to wait for*@timeout: timeout, in jiffies* The process is put to sleep (oom_victims_wait, !atomic_read( & Number of OOM victims in flight), timeout)
772  If ret <= 0 Then
773  m_killer_enable - enable OOM killer
774  Return false
776  pr_info("OOM killer disabled.\n")
778  Return true