Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:memory_failure_work_func

Proto:static void memory_failure_work_func(struct work_struct *work)

Type:void

Parameter:

TypeParameterName
struct work_struct *work
1467  struct memory_failure_entry entry = {0, }
1471  mf_cpu = this_cpu_ptr( & memory_failure_cpu)
1472  cycle
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  If Not gotten Then Break
1478  If flags & MF_SOFT_OFFLINE Then soft_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  Else 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