Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mm.h Create Date:2022-07-28 05:43:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:compound_mapcount

Proto:static inline int compound_mapcount(struct page *page)

Type:int

Parameter:

TypeParameterName
struct page *page
685  VM_BUG_ON_PAGE(!PageCompound(page), page)
686  page = compound_head(page)
687  Return atomic_read(compound_mapcount_ptr(page)) + 1
Caller
NameDescribe
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.