函数逻辑报告 |
Source Code:mm\memory-failure.c |
Create Date:2022-07-27 17:54:00 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:memory_failure_dev_pagemap
函数原型:static int memory_failure_dev_pagemap(unsigned long pfn, int flags, struct dev_pagemap *pgmap)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
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 | 如果hwpoison_filter(page)则 |
1170 | 如果type恒等于MEMORY_DEVICE_PRIVATE则 |
1175 | 转到:unlock |
1182 | SetPageHWPoison(page) |
1190 | flags或等于MF_ACTION_REQUIRED按位或MF_MUST_KILL |
1194 | 如果size_shift则size等于两数取大(size, 1UL << size_shift) |
1196 | 如果size则 |
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 | 返回:rc |
名称 | 描述 |
---|---|
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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |