函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-27 17:45:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lock_page_lru

函数原型:static void lock_page_lru(struct page *page, int *isolated)

返回类型:void

参数:

类型参数名称
struct page *page
int *isolated
2577  pgdat等于page_pgdat(page)
2579  spin_lock_irq( & Write-intensive fields used by page reclaim )
2580  如果PageLRU(page)则
2583  lruvec等于mem_cgroup_page_lruvec - return lruvec for isolating/putting an LRU page*@page: the page*@pgdat: pgdat of the page* This function is only safe when following the LRU page isolation* and putback protocol: the LRU lock must be held, and the page must
2584  ClearPageLRU(page)
2585  del_page_from_lru_list(page, lruvec, page_lru - which LRU list should a page be on?*@page: the page to test* Returns the LRU list a page should be on, as an index* into the array of LRU lists.)
2586  isolated等于1
2587  否则isolated等于0
调用者
名称描述
commit_charge