Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Kill 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.

Proto:static void kill_procs(struct list_head *to_kill, int forcekill, bool fail, unsigned long pfn, int flags)

Type:void

Parameter:

TypeParameterName
struct list_head *to_kill
intforcekill
boolfail
unsigned longpfn
intflags
362  If forcekill Then
368  If fail || addr == -EFAULT Then
369  pr_err("Memory failure: %#lx: forcibly killing %s:%d because of failure to unmap corrupted page\n", pfn, comm, process id)
381  Else if 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 < 0 Then pr_err("Memory failure: %#lx: Cannot send advisory machine check signal to %s:%d\n", pfn, * executable name, excluding path. * - normally initialized setup_new_exec() * - access it with [gs]et_task_comm() * - lock it with task_lock(), process id)
385  put_task_struct(tsk)
386  kfree(tk)
Caller
NameDescribe
hwpoison_user_mappingsDo all that is necessary to remove user space mappings. Unmap* the pages and send SIGBUS to the processes if the data was dirty.
memory_failure_dev_pagemap