函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:PageTransCompoundMap is the same as PageTransCompound, but it also* guarantees the primary MMU has the entire compound page mapped* through pmd_trans_huge, which in turn guarantees the secondary MMUs* can also map the entire compound page

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

返回类型:int

参数:

类型参数名称
struct page *page
637  如果非PageTransCompound returns true for both transparent huge pages* and hugetlbfs pages, so it should only be called when it's known* that hugetlbfs pages aren't involved.则返回:0
640  如果PageAnon(page)则返回:atomic_read( & * If the page can be mapped to userspace, encodes the number * of times this page is referenced by a page table.)小于0
643  head等于compound_head(page)
645  返回:atomic_read( & * If the page can be mapped to userspace, encodes the number * of times this page is referenced by a page table.)恒等于atomic_read(compound_mapcount_ptr(head))