Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:oom_reap_task

Proto:static void oom_reap_task(struct task_struct *tsk)

Type:void

Parameter:

TypeParameterName
struct task_struct *tsk
610  attempts = 0
611  mm = oom_mm
614  When attempts++ < MAX_OOM_REAP_RETRIES && Not 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. cycle
615  Like schedule_timeout_uninterruptible(), except this task will not contribute* to load average.
617  If attempts <= MAX_OOM_REAP_RETRIES || st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Go to done
621  pr_info("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  Atomically set a bit in memory
635  put_task_struct(tsk)
Caller
NameDescribe
oom_reaper