Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Send all the processes who have the page mapped a signal.* ``action optional'' if they are not immediately affected by the error* ``action required'' if error happened in current execution context

Proto:static int kill_proc(struct to_kill *tk, unsigned long pfn, int flags)

Type:int

Parameter:

TypeParameterName
struct to_kill *tk
unsigned longpfn
intflags
211  t = tsk
212  addr_lsb = size_shift
215  pr_err("Memory failure: %#lx: Sending SIGBUS to %s:%d due to hardware memory corruption\n", pfn, comm, pid)
218  If flags & MF_ACTION_REQUIRED && mm == mm Then
219  ret = force_sig_mceerr(hardware memory error consumed on a machine check: action required , (void__user * )addr, addr_lsb)
221  Else
228  ret = send_sig_mceerr(hardware memory error detected in process but not consumed: action optional, (void__user * )addr, addr_lsb, t)
231  If ret < 0 Then pr_info("Memory failure: Error sending signal to %s:%d: %d\n", comm, pid, ret)
234  Return ret
Caller
NameDescribe
kill_procsKill the processes that have been collected earlier.* Only do anything when DOIT is set, otherwise just free the list* (this is used for clean pages which do not need killing)* Also when FAIL is set do a force kill because something went* wrong earlier.