| Function report | 
| Source Code: mm\memory-failure.c | Create Date:2022-07-28 16:19:49 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:soft_offline_huge_page
Proto:static int soft_offline_huge_page(struct page *page, int flags)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct page * | page | |
| int | flags | 
| 1672 | pfn = page_to_pfn(page) | 
| 1673 | hpage = compound_head(page) | 
| 1681 | If PageHWPoison(hpage) Then | 
| 1683 | put_hwpoison_page(hpage) | 
| 1685 | Return -EBUSY | 
| 1689 | ret = isolate_huge_page(hpage, & pagelist) | 
| 1694 | put_hwpoison_page(hpage) | 
| 1695 | If Not ret Then | 
| 1702 | If ret Then | 
| 1703 | pr_info("soft offline: %#lx: hugepage migration failed %d, type %lx (%pGp)\n", pfn, ret, Atomic flags, some possibly * updated asynchronously , & Atomic flags, some possibly * updated asynchronously ) | 
| 1709 | Else | 
| 1718 | If Not ret Then | 
| 1725 | Return ret | 
| Name | Describe | 
|---|---|
| soft_offline_in_use_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 |