| Function report | 
| Source Code: mm\memory-failure.c | Create Date:2022-07-28 16:19:03 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:get_hwpoison_page() - Get refcount for memory error handling:*@page: raw error page (hit by memory error)* Return: return 0 if failed to grab the refcount, otherwise true (some* non-zero value.)
Proto:int get_hwpoison_page(struct page *page)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct page * | page | 
| 918 | head = compound_head(page) | 
| 928 | pr_err("Memory failure: %#lx: non anonymous thp\n", page_to_pfn(page)) | 
| 930 | Return 0 | 
| 935 | If head == compound_head(page) Then Return 1 | 
| 938 | pr_info("Memory failure: %#lx cannot catch tail\n", page_to_pfn(page)) | 
| 943 | Return 0 | 
| Name | Describe | 
|---|---|
| memory_failure_hugetlb | |
| 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 | 
| unpoison_memory | poison_memory - Unpoison a previously poisoned page*@pfn: Page number of the to be unpoisoned page* Software-unpoison a page that has been poisoned by* memory_failure() earlier | 
| __get_any_page | Safely get reference count of an arbitrary page.* Returns 0 for a free page, -EIO for a zero refcount page* that is not free, and 1 for any other page type.* For 1 the page is returned with increased page count, otherwise not. | 
| hwpoison_inject | 
| 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 |