Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__lru_cache_add

Proto:static void __lru_cache_add(struct page *page)

Type:void

Parameter:

TypeParameterName
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  If Not Add a page to a pagevec. Returns the number of slots still available. || PageCompound(page) Then 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)
Caller
NameDescribe
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