函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Determines whether the kernel must panic because of the panic_on_oom sysctl.

函数原型:static void check_panic_on_oom(struct oom_control *oc)

返回类型:void

参数:

类型参数名称
struct oom_control *oc
1001  如果此条件成立可能性大(为编译器优化)(!sysctl_panic_on_oom)则返回
1003  如果sysctl_panic_on_oom不等于2则
1009  如果Used to print the constraint info. 不等于CONSTRAINT_NONE则返回
1013  如果rder == -1 means the oom kill is required by sysrq, otherwise only* for display purposes.则返回
1015  dump_header(oc, NULL)
1016  panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
调用者
名称描述
out_of_memory_of_memory - kill the "best" process when we run out of memory*@oc: pointer to struct oom_control* If we run out of memory, we have the choice between either* killing a random task (bad), letting the system crash (worse)