函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:page_cache_prev_miss() - Find the previous gap in the page cache.*@mapping: Mapping.*@index: Index.*@max_scan: Maximum range to search.* Search the range [max(index - max_scan + 1, 0), index] for the* gap with the highest index.

函数原型:unsigned long page_cache_prev_miss(struct address_space *mapping, unsigned long index, unsigned long max_scan)

返回类型:unsigned long

参数:

类型参数名称
struct address_space *mapping
unsigned longindex
unsigned longmax_scan
1498  XA_STATE() - Declare an XArray operation state.*@name: Name of this operation state (usually xas).*@array: Array to operate on.*@index: Initial index of interest.* Declare and initialise an xa_state on the stack.(xas, & i_pages, index)
1500 max_scan自减循环
1501  entry等于xas_prev() - Move iterator to previous index.*@xas: XArray operation state.* If the @xas was in an error state, it will remain in an error state* and this function will return %NULL. If the @xas has never been walked,
1502  如果非entryxa_is_value() - Determine if an entry is a value.*@entry: XArray entry.* Context: Any context.* Return: True if the entry is a value, false if it is a pointer.退出
1504  如果xa_index恒等于ULONG_MAX退出
1508  返回:xa_index
调用者
名称描述
count_history_pagesCount contiguously cached pages from @offset-1 to @offset-@max,* this count is a conservative estimation of* - length of the sequential read sequence, or* - thrashing threshold in memory tight systems