Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memory-failure.c Create Date:2022-07-28 16:18:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Determine whether a given process is "early kill" process which expects* to be signaled when some page under the process is hwpoisoned.* Return task_struct of the dedicated thread (main thread unless explicitly

Proto:static struct task_struct *task_early_kill(struct task_struct *tsk, int force_early)

Type:struct task_struct

Parameter:

TypeParameterName
struct task_struct *tsk
intforce_early
418  If Not mm Then Return NULL
420  If force_early Then Return tsk
422  t = Find a dedicated thread which is supposed to handle SIGBUS(BUS_MCEERR_AO)* on behalf of the thread group
423  If t Then Return t
425  If sysctl_memory_failure_early_kill Then Return tsk
427  Return NULL
Caller
NameDescribe
collect_procs_anonCollect processes when the error hit an anonymous page.
collect_procs_fileCollect processes when the error hit a file mapped page.