函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__activate_page

函数原型:static void __activate_page(struct page *page, struct lruvec *lruvec, void *arg)

返回类型:void

参数:

类型参数名称
struct page *page
struct lruvec *lruvec
void *arg
278  如果PageLRU(page)且非PageActive(page)且非PageUnevictable(page)则
279  file等于page_is_file_cache - should the page be on a file LRU or anon LRU?*@page: the page to test* Returns 1 if @page is page cache page backed by a regular filesystem,* or 0 if @page is anonymous, tmpfs or otherwise ram or swap backed
280  lru等于page_lru_base_type - which LRU list type should a page be on?*@page: the page to test* Used for LRU list index arithmetic.* Returns the base LRU type - file or anon - @page should be on.
282  del_page_from_lru_list(page, lruvec, lru)
283  SetPageActive(page)
284  lru加等于LRU_ACTIVE
285  add_page_to_lru_list(page, lruvec, lru)
286  trace_mm_lru_activate(page)
288  __count_vm_event(PGACTIVATE)
289  update_page_reclaim_stat(lruvec, file, 1)
调用者
名称描述
activate_page