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:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:page_ref_sub

Proto:static inline void page_ref_sub(struct page *page, int nr)

Type:void

Parameter:

TypeParameterName
struct page *page
intnr
100  atomic_sub(nr, & Usage count. *DO NOT USE DIRECTLY*. See page_ref.h )
101  If page_ref_tracepoint_active(__tracepoint_page_ref_mod) Then __page_ref_mod(page, - nr)
Caller
NameDescribe
unaccount_page_cache_page
page_cache_free_page
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.
delete_from_swap_cacheThis must be called only on pages that have* been verified to be in the swap cache and locked.* It will never put the page into the free list,* the caller has a reference on the page.