函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\snapshot.c Create Date:2022-07-27 11:01:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:safe_copy_page - Copy a page in a safe way.* Check if the page we are going to copy is marked as present in the kernel* page tables. This always is the case if CONFIG_DEBUG_PAGEALLOC or* CONFIG_ARCH_HAS_SET_DIRECT_MAP is not set

函数原型:static void safe_copy_page(void *dst, struct page *s_page)

返回类型:void

参数:

类型参数名称
void *dst
struct page *s_page
1356  如果kernel_page_present(s_page)则
1357  This is needed, because copy_page and memcpy are not usable for copying* task structs.
1358  否则
1359  kernel_map_pages(s_page, 1, 1)
1360  This is needed, because copy_page and memcpy are not usable for copying* task structs.
1361  kernel_map_pages(s_page, 1, 0)
调用者
名称描述
copy_data_page