函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swap.c Create Date:2022-07-27 15:36:59
Last Modify:2022-05-23 13:40:24 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__lru_cache_activate_page

函数原型:static void __lru_cache_activate_page(struct page *page)

返回类型:void

参数:

类型参数名称
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 i大于等于0循环
352  pagevec_page等于pages[i]
354  如果pagevec_page恒等于page
356  退出
360  The weird & is necessary because sparse considers (void)(var) to be* a direct dereference of percpu variable (var).(lru_add_pvec)
调用者
名称描述
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,