Function report |
Source Code:mm\memory-failure.c |
Create Date:2022-07-28 16:19:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:memory_failure_hugetlb
Proto:static int memory_failure_hugetlb(unsigned long pfn, int flags)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | pfn | |
int | flags |
1072 | p = pfn_to_page(pfn) |
1073 | head = compound_head(p) |
1077 | If TestSetPageHWPoison(head) Then |
1083 | num_poisoned_pages_inc() |
1090 | If PageHWPoison(head) Then |
1091 | If hwpoison_filter(p) && TestClearPageHWPoison(p) || p != head && TestSetPageHWPoison(head) Then |
1093 | num_poisoned_pages_dec() |
1095 | Return 0 |
1101 | Return 0 |
1107 | If Not PageHWPoison(head) Then |
1124 | If huge_page_size(page_hstate(head)) > PMD_SIZE Then |
1127 | Go to out |
1133 | Go to out |
1136 | res = identify_page_state(pfn, p, page_flags) |
1137 | out : |
1139 | Return res |
Name | Describe |
---|---|
memory_failure | 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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |