函数逻辑报告

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

函数名称:set_page_count

函数原型:static inline void set_page_count(struct page *page, int v)

返回类型:void

参数:

类型参数名称
struct page *page
intv
77  atomic_set( & Usage count. *DO NOT USE DIRECTLY*. See page_ref.h , v)
78  如果page_ref_tracepoint_active(__tracepoint_page_ref_set)则__page_ref_set(page, v)
调用者
名称描述
prep_compound_page
__free_pages_core
init_cma_reserved_pageblockFree whole pageblock and set its migration type to MIGRATE_CMA.
page_frag_alloc
prep_compound_gigantic_page
init_page_countSetup the page count before being freed into the page allocator for* the first time (boot or memory hotplug)
set_page_refcountedTurn a non-refcounted page (->_refcount == 0) into refcounted with* a count of one.