函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memory-failure.c Create Date:2022-07-27 17:53:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static int kill_proc(struct to_kill *tk, unsigned long pfn, int flags)

返回类型:int

参数:

类型参数名称
struct to_kill *tk
unsigned longpfn
intflags
211  t等于tsk
212  addr_lsb等于size_shift
215  打印错误信息("Memory failure: %#lx: Sending SIGBUS to %s:%d due to hardware memory corruption\n", pfn, comm, pid)
218  如果flags按位与MF_ACTION_REQUIREDmm恒等于mm
219  ret等于force_sig_mceerr(hardware memory error consumed on a machine check: action required , (void__user * )addr, addr_lsb)
221  否则
228  ret等于send_sig_mceerr(hardware memory error detected in process but not consumed: action optional, (void__user * )addr, addr_lsb, t)
231  如果ret小于0则打印信息("Memory failure: Error sending signal to %s:%d: %d\n", comm, pid, ret)
234  返回:ret
调用者
名称描述
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.