函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Slow path of page_mapcount() for compound pages

函数原型:int __page_mapcount(struct page *page)

返回类型:int

参数:

类型参数名称
struct page *page
698  ret等于atomic_read( & * If the page can be mapped to userspace, encodes the number * of times this page is referenced by a page table.)加1
703  如果非PageAnon(page)且非PageHuge(page)则返回:ret
705  page等于compound_head(page)
706  ret加等于atomic_read(compound_mapcount_ptr(page))加1
707  如果PageDoubleMap indicates that the compound page is mapped with PTEs as well* as PMDs.* This is required for optimization of rmap operations for THP: we can postpone* per small page mapcount accounting (and its overhead from atomic operations)ret自减
709  返回:ret
调用者
名称描述
page_mapcount