函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ksm_migrate_page

函数原型:void ksm_migrate_page(struct page *newpage, struct page *oldpage)

返回类型:void

参数:

类型参数名称
struct page *newpage
struct page *oldpage
2685  VM_BUG_ON_PAGE(!PageLocked(oldpage), oldpage)
2686  VM_BUG_ON_PAGE(!PageLocked(newpage), newpage)
2687  VM_BUG_ON_PAGE( See page-flags.h for PAGE_MAPPING_FLAGS != See page-flags.h for PAGE_MAPPING_FLAGS , newpage)
2689  stable_node等于page_stable_node(newpage)
2690  如果stable_node
2691  VM_BUG_ON_PAGE(kpfn != page_to_pfn(oldpage), oldpage)
2692  kpfn等于page_to_pfn(newpage)
2699  smp_wmb()
2700  set_page_stable_node(oldpage, NULL)
调用者
名称描述
migrate_page_statesCopy the page to its new location