函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mm_inline.h Create Date:2022-07-27 15:31:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:page_off_lru - which LRU list was page on? clearing its lru flags.*@page: the page to test* Returns the LRU list a page was on, as an index into the array of LRU* lists; and clears its Unevictable or Active flags, ready for freeing.

函数原型:static __always_inline enum lru_list page_off_lru(struct page *page)

返回类型:enum lru_list

参数:

类型参数名称
struct page *page
94  如果PageUnevictable(page)则
95  __ClearPageUnevictable(page)
96  lru等于LRU_UNEVICTABLE
97  否则
98  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.
99  如果PageActive(page)则
101  lru加等于LRU_ACTIVE
104  返回:lru
调用者
名称描述
__page_cache_releaseThis path almost never happens for VM activity - pages are normally* freed via pagevecs. But it gets used by networking.
release_pageslease_pages - batched put_page()*@pages: array of pages to release*@nr: number of pages* Decrement the reference count on all the pages in @pages. If it* fell to zero, remove the page from the LRU and free it.