Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swap.c Create Date:2022-07-28 14:13:15
Last Modify:2022-05-23 13:40:24 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__lru_cache_activate_page

Proto:static void __lru_cache_activate_page(struct page *page)

Type:void

Parameter:

TypeParameterName
struct page *page
338  pvec = Must be an lvalue. Since @var must be a simple identifier,* we force a syntax error here if it isn't.(lru_add_pvec)
351  When i >= 0 cycle
352  pagevec_page = pages[i]
354  If pagevec_page == page Then
356  Break
360  The weird & is necessary because sparse considers (void)(var) to be* a direct dereference of percpu variable (var).(lru_add_pvec)
Caller
NameDescribe
mark_page_accessedMark a page as having seen activity.* inactive,unreferenced -> inactive,referenced* inactive,referenced -> active,unreferenced* active,unreferenced -> active,referenced* When a newly allocated page is not yet visible, so safe for non-atomic ops,