函数逻辑报告

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_unfreeze

函数原型:static inline void page_ref_unfreeze(struct page *page, int count)

返回类型:void

参数:

类型参数名称
struct page *page
intcount
175  VM_BUG_ON_PAGE(page_count(page) != 0, page)
176  VM_BUG_ON(count == 0)
178  atomic_set_release( & Usage count. *DO NOT USE DIRECTLY*. See page_ref.h , count)
179  如果page_ref_tracepoint_active(__tracepoint_page_ref_unfreeze)则__page_ref_unfreeze(page, count)
调用者
名称描述
__remove_mappingSame as remove_mapping, but if the page is removed from the mapping, it* gets returned with a refcount of 0.
remove_mappingAttempt to detach a locked page from its ->mapping. If it is dirty or if* someone else has a ref on the page, abort and return 0. If it was* successfully detached, return 1. Assumes the caller has a single ref on* this page.
shrink_page_listshrink_page_list() returns the number of reclaimed pages
reuse_ksm_page
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.
migrate_huge_page_move_mappingThe expected number of remaining references is the same as that* of migrate_page_move_mapping().
__split_huge_page_tail