Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:identify_page_state

Proto:static int identify_page_state(unsigned long pfn, struct page *p, unsigned long page_flags)

Type:int

Parameter:

TypeParameterName
unsigned longpfn
struct page *p
unsigned longpage_flags
1057  cycle If ( Atomic flags, some possibly * updated asynchronously & mask) == res Then
1059  Break
1061  page_flags |= Atomic flags, some possibly * updated asynchronously & 1UL << PG_dirty
1063  If Not mask Then cycle
1065  If (page_flags & mask) == res Then Break
1067  Return page_action(ps, p, pfn)
Caller
NameDescribe
memory_failure_hugetlb
memory_failurememory_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