函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:oom_reaper

函数原型:static int oom_reaper(void *unused)

返回类型:int

参数:

类型参数名称
void *unused
640  当(true)循环
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  加自旋锁
645  如果(oom_reaper_list != NULL)则
646  tsk等于oom_reaper_list
649  自旋锁解锁
651  如果tskoom_reap_task(tsk)
655  返回:0