函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:memory_failure_work_func

函数原型:static void memory_failure_work_func(struct work_struct *work)

返回类型:void

参数:

类型参数名称
struct work_struct *work
1467  struct memory_failure_entry entry = {0, }
1471  mf_cpu等于this_cpu_ptr( & memory_failure_cpu)
1472  循环
1473  spin_lock_irqsave( & lock, proc_flags)
1474  gotten等于kfifo_get - get data from the fifo*@fifo: address of the fifo to be used*@val: address where to store the data* This macro reads the data from the fifo( & fifo, & entry)
1475  spin_unlock_irqrestore( & lock, proc_flags)
1476  如果非gotten退出
1478  如果flags按位与MF_SOFT_OFFLINEsoft_offline_page - Soft offline a page.*@pfn: pfn to soft-offline*@flags: flags. Same as memory_failure().* Returns 0 on success, otherwise negated errno.* Soft offline a page, by migration or invalidation,* without killing anything
1480  否则memory_failure - Handle memory failure of a page.*@pfn: Page Number of the corrupted page*@flags: fine tune action taken* This function is called by the low level machine check code* of an architecture when it detects hardware memory corruption* of a page