函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:remap_page

函数原型:static void remap_page(struct page *page)

返回类型:void

参数:

类型参数名称
struct page *page
2429  如果PageHuge() only returns true for hugetlbfs pages, but not for* normal or transparent huge pages.* PageTransHuge() returns true for both transparent huge and* hugetlbfs pages, but not normal pages. PageTransHuge() can only be
2430  Get rid of all migration entries and replace them by* references to the indicated page.
2431  否则
2432 i小于HPAGE_PMD_NR循环Get rid of all migration entries and replace them by* references to the indicated page.
调用者
名称描述
__split_huge_page
split_huge_page_to_listThis function splits huge page into normal pages. @page can point to any* subpage of huge page to split. Split doesn't change the position of @page.* Only caller must hold pin on the @page, otherwise split fails with -EBUSY.* The huge page must be locked.