Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\page_ref.h Create Date:2022-07-28 05:41:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:page_ref_freeze

Proto:static inline int page_ref_freeze(struct page *page, int count)

Type:int

Parameter:

TypeParameterName
struct page *page
intcount
166  ret = Value is more likely to compile time(atomic_cmpxchg( & Usage count. *DO NOT USE DIRECTLY*. See page_ref.h , count, 0) == count)
168  If page_ref_tracepoint_active(__tracepoint_page_ref_freeze) Then __page_ref_freeze(page, count, ret)
170  Return ret
Caller
NameDescribe
__remove_mappingSame as remove_mapping, but if the page is removed from the mapping, it* gets returned with a refcount of 0.
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_to_listThis function splits huge page into normal pages. @page can point to any* subpage of huge page to split. Split doesn't change the position of @page.* Only caller must hold pin on the @page, otherwise split fails with -EBUSY.* The huge page must be locked.