函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Racy check whether the huge page can be split

函数原型:bool can_split_huge_page(struct page *page, int *pextra_pins)

返回类型:bool

参数:

类型参数名称
struct page *page
int *pextra_pins
2667  如果PageAnon(page)则extra_pins等于如果PageSwapCache(page)则HPAGE_PMD_NR否则0
2669  否则extra_pins等于HPAGE_PMD_NR
2671  如果pextra_pinspextra_pins等于extra_pins
2673  返回:total_mapcount(page)恒等于page_count(page)减extra_pins减1
调用者
名称描述
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.
shrink_page_listshrink_page_list() returns the number of reclaimed pages