Function report |
Source Code:mm\memory-failure.c |
Create Date:2022-07-28 16:19:20 |
| 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_dev_pagemap
Proto:static int memory_failure_dev_pagemap(unsigned long pfn, int flags, struct dev_pagemap *pgmap)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned long | pfn | |
| int | flags | |
| struct dev_pagemap * | pgmap |
| 1145 | page = pfn_to_page(pfn) |
| 1146 | const bool unmap_success = true |
| 1147 | size = 0 |
| 1161 | cookie = dax_lock_page(page) |
| 1165 | If hwpoison_filter(page) Then |
| 1170 | If type == MEMORY_DEVICE_PRIVATE Then |
| 1175 | Go to unlock |
| 1182 | SetPageHWPoison(page) |
| 1190 | flags |= MF_ACTION_REQUIRED | MF_MUST_KILL |
| 1194 | If size_shift Then size = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(size, 1UL << size_shift) |
| 1196 | If size Then |
| 1203 | start = Our offset within mapping. << PAGE_SHIFT determines the page size & ~(size - 1) |
| 1207 | rc = 0 |
| 1208 | unlock : |
| 1209 | dax_unlock_page(page, cookie) |
| 1210 | out : |
| 1212 | put_dev_pagemap(pgmap) |
| 1214 | Return rc |
| 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 |