函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mm.h Create Date:2022-07-27 06:44:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:compound_mapcount

函数原型:static inline int compound_mapcount(struct page *page)

返回类型:int

参数:

类型参数名称
struct page *page
685  VM_BUG_ON_PAGE(!PageCompound(page), page)
686  page等于compound_head(page)
687  返回:atomic_read(compound_mapcount_ptr(page))加1
调用者
名称描述
shrink_page_listshrink_page_list() returns the number of reclaimed pages
__dump_page
free_tail_pages_check
page_trans_huge_map_swapcount
follow_trans_huge_pmd
__split_huge_pmd_locked
total_mapcount
page_trans_huge_mapcountThis calculates accurately how many mappings a transparent hugepage* has (unlike page_mapcount() which isn't fully accurate)
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.