Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\filemap.c Create Date:2022-07-28 14:01:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:unsigned long page_cache_next_miss(struct address_space *mapping, unsigned long index, unsigned long max_scan)

Type:unsigned long

Parameter:

TypeParameterName
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  When max_scan-- cycle
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  If Not entry || xa_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. Then Break
1468  If xa_index == 0 Then Break
1472  Return xa_index
Caller
NameDescribe
ondemand_readaheadA minimal readahead algorithm for trivial sequential/random reads.