函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:page_cache_next_miss() - Find the next gap in the page cache.*@mapping: Mapping.*@index: Index.*@max_scan: Maximum range to search.* Search the range [index, min(index + max_scan - 1, ULONG_MAX)] for the* gap with the lowest index.

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

返回类型:unsigned long

参数:

类型参数名称
struct address_space *mapping
unsigned longindex
unsigned longmax_scan
1462  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)
1464 max_scan自减循环
1465  entry等于xas_next() - Move state to next 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,
1466  如果非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.退出
1468  如果xa_index恒等于0则退出
1472  返回:xa_index
调用者
名称描述
ondemand_readaheadA minimal readahead algorithm for trivial sequential/random reads.