函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__lru_cache_add

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

返回类型:void

参数:

类型参数名称
struct page *page
407  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)
409  get_page(page)
410  如果非Add a page to a pagevec. Returns the number of slots still available.PageCompound(page)则Add the passed pages to the LRU, then drop the caller's refcount* on them. Reinitialises the caller's pagevec.
412  The weird & is necessary because sparse considers (void)(var) to be* a direct dereference of percpu variable (var).(lru_add_pvec)
调用者
名称描述
lru_cache_add_anonlru_cache_add_anon - add a page to the page lists*@page: the page to add
lru_cache_add_file
lru_cache_addlru_cache_add - add a page to a page list*@page: the page to be added to the LRU.* Queue the page for addition to the LRU via pagevec. The decision on whether* to add the page to the [in]active [file|anon] list is deferred until the* pagevec is drained