Function report |
Source Code:mm\memory-failure.c |
Create Date:2022-07-28 16:20:00 |
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_page - Soft offline a page.*@pfn: pfn to soft-offline*@flags: flags. Same as memory_failure().* Returns 0 on success, otherwise negated errno.* Soft offline a page, by migration or invalidation,* without killing anything
Proto:int soft_offline_page(unsigned long pfn, int flags)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | pfn | |
int | flags |
1892 | If PageHWPoison(page) Then |
1894 | If flags & MF_COUNT_INCREASED Then put_hwpoison_page(page) |
1896 | Return -EBUSY |
1899 | get_online_mems() |
1900 | ret = get_any_page(page, pfn, flags) |
1901 | put_online_mems() |
1903 | If ret > 0 Then ret = soft_offline_in_use_page(page, flags) |
1905 | Else if ret == 0 Then ret = soft_offline_free_page(page) |
1908 | Return ret |
Name | Describe |
---|---|
memory_failure_work_func |
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 |