函数逻辑报告

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_count

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

返回类型:int

参数:

类型参数名称
struct page *page
67  返回:atomic_read( & Usage count. *DO NOT USE DIRECTLY*. See page_ref.h )
调用者
名称描述
ring_buffer_free_read_pageg_buffer_free_read_page - free an allocated read page*@buffer: the buffer the page was allocate for*@cpu: the cpu buffer the page came from*@data: the page to free* Free a page allocated from ring_buffer_alloc_read_page.
__dump_page
page_expected_stateA bad page could be due to a number of fields. Instead of multiple branches,* try and check multiple fields with one check. The caller must do a detailed* check if necessary.
free_pages_check_bad
check_new_page_bad
__page_frag_cache_drain
has_unmovable_pagesThis function checks whether pageblock includes unmovable pages or not.* If @count is not zero, it is okay to include less @count unmovable pages* PageLRU check without isolation or lru_lock could race so that
dax_disassociate_entry
dax_busy_page
put_page_testzeroDrop a ref, return true if the refcount fell to zero (the page has no users)
try_get_page
set_page_refcountedTurn a non-refcounted page (->_refcount == 0) into refcounted with* a count of one.