Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\snapshot.c Create Date:2022-07-28 10:00:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static void safe_copy_page(void *dst, struct page *s_page)

Type:void

Parameter:

TypeParameterName
void *dst
struct page *s_page
1356  If kernel_page_present(s_page) Then
1357  This is needed, because copy_page and memcpy are not usable for copying* task structs.
1358  Else
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)
Caller
NameDescribe
copy_data_page