Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static bool oom_reap_task_mm(struct task_struct *tsk, struct mm_struct *mm)

Type:bool

Parameter:

TypeParameterName
struct task_struct *tsk
struct mm_struct *mm
569  bool ret = true
571  If Not rylock for reading -- returns 1 if successful, 0 if contention Then
572  trace_skip_task_reaping(pid)
573  Return false
582  If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then
583  trace_skip_task_reaping(pid)
584  Go to out_unlock
587  trace_start_task_reaping(pid)
590  ret = __oom_reap_task_mm(mm)
591  If Not ret Then Go to out_finish
594  pr_info("oom_reaper: reaped process %d (%s), now anon-rss:%lukB, file-rss:%lukB, shmem-rss:%lukB\n", task_pid_nr(tsk), comm, K(per-process(per-mm_struct) statistics.), K(per-process(per-mm_struct) statistics.), K(per-process(per-mm_struct) statistics.))
599  out_finish :
600  trace_finish_task_reaping(pid)
601  out_unlock :
602  lease a read lock
604  Return ret
Caller
NameDescribe
oom_reap_task