Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kexec_core.c Create Date:2022-07-28 11:02:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kexec_should_crash

Proto:int kexec_should_crash(struct task_struct *p)

Type:int

Parameter:

TypeParameterName
struct task_struct *p
80  If crash_kexec_post_notifiers Then Return 0
86  If in_interrupt() || Not process id || s_global_init - check if a task structure is init. Since init* is free to have sub-threads we need to check tgid.*@tsk: Task structure to be checked.* Check if a task structure is the first user space task the kernel created. || panic_on_oops Then Return 1
88  Return 0