函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:page_ref_add

函数原型:static inline void page_ref_add(struct page *page, int nr)

返回类型:void

参数:

类型参数名称
struct page *page
intnr
93  atomic_add(nr, & Usage count. *DO NOT USE DIRECTLY*. See page_ref.h )
94  如果page_ref_tracepoint_active(__tracepoint_page_ref_mod)则__page_ref_mod(page, nr)
调用者
名称描述
page_frag_alloc
add_to_swap_cacheadd_to_swap_cache resembles add_to_page_cache_locked on swapper_space,* but sets SwapCache flag and private instead of mapping and index.
migrate_page_move_mappingReplace the page in the mapping.* The number of remaining references must be:* 1 for anonymous pages without a mapping* 2 for pages with a mapping* 3 for pages with a mapping and PagePrivate/PagePrivate2 set.
__split_huge_pmd_locked
__split_huge_page