Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Determines whether the kernel must panic because of the panic_on_oom sysctl.

Proto:static void check_panic_on_oom(struct oom_control *oc)

Type:void

Parameter:

TypeParameterName
struct oom_control *oc
1001  If Value is more likely to compile time(!sysctl_panic_on_oom) Then Return
1003  If sysctl_panic_on_oom != 2 Then
1009  If Used to print the constraint info. != CONSTRAINT_NONE Then Return
1013  If rder == -1 means the oom kill is required by sysrq, otherwise only* for display purposes. Then Return
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.
Caller
NameDescribe
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)