| 函数逻辑报告 | 
| Source Code: mm\page_alloc.c | Create Date:2022-07-27 16:38:59 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Set PG_hwpoison flag if a given page is confirmed to be a free page. This* test is performed under the zone lock to prevent a race against page* allocation.
函数原型:bool set_hwpoison_free_buddy_page(struct page *page)
返回类型:bool
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct page * | page | 
| 8729 | pfn等于page_to_pfn(page) | 
| 8732 | bool hwpoisoned = false | 
| 8734 | spin_lock_irqsave( & 自旋锁, flags) | 
| 8739 | 如果非TestSetPageHWPoison(page)则hwpoisoned = true | 
| 8741 | 退出 | 
| 8744 | spin_unlock_irqrestore( & 自旋锁, flags) | 
| 8746 | 返回:hwpoisoned | 
| 名称 | 描述 | 
|---|---|
| unmap_and_move | Obtain the lock on page, remove all ptes and migrate the page* to the newly allocated page in newpage. | 
| soft_offline_huge_page | |
| soft_offline_free_page | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |