函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memory-failure.c Create Date:2022-07-27 17:54:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:int soft_offline_page(unsigned long pfn, int flags)

返回类型:int

参数:

类型参数名称
unsigned longpfn
intflags
1885  如果非pfn_valid(pfn)则返回:负ENXIO
1888  page等于Return page for the valid pfn only if the page is online. All pfn* walkers which rely on the fully initialized page->flags and others* should use this rather than pfn_valid && pfn_to_page(pfn)
1889  如果非page则返回:负EIO
1892  如果PageHWPoison(page)则
1893  打印信息("soft offline: %#lx page already poisoned\n", pfn)
1894  如果flags按位与MF_COUNT_INCREASEDput_hwpoison_page(page)
1896  返回:负EBUSY
1899  get_online_mems()
1900  ret等于get_any_page(page, pfn, flags)
1901  put_online_mems()
1903  如果ret大于0则ret等于soft_offline_in_use_page(page, flags)
1905  否则如果ret恒等于0则ret等于soft_offline_free_page(page)
1908  返回:ret
调用者
名称描述
memory_failure_work_func