函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\oom_kill.c Create Date:2022-07-27 15:29:24
Last Modify:2022-05-23 13:16:41 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static bool oom_reap_task_mm(struct task_struct *tsk, struct mm_struct *mm)

返回类型:bool

参数:

类型参数名称
struct task_struct *tsk
struct mm_struct *mm
569  bool ret = true
571  如果非rylock for reading -- returns 1 if successful, 0 if contention
572  trace_skip_task_reaping(pid)
573  返回:false
582  如果st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from
583  trace_skip_task_reaping(pid)
584  转到:out_unlock
587  trace_start_task_reaping(pid)
590  ret等于__oom_reap_task_mm(mm)
591  如果非ret则转到:out_finish
594  打印信息("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  返回:ret
调用者
名称描述
oom_reap_task