函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:xas_find() - Find the next present entry in the XArray

函数原型:void *xas_find(struct xa_state *xas, unsigned long max)

返回类型:void

参数:

类型参数名称
struct xa_state *xas
unsigned longmax
1085  如果xas_error() - Return an errno stored in the xa_state.*@xas: XArray operation state.* Return: 0 if no error has been noted. A negative errno if one has.xa_node恒等于XAS_BOUNDS则返回:NULL
1087  如果xa_index大于max则返回:set_bounds(xas)
1090  如果非xa_node
1091  xa_index等于1
1092  返回:set_bounds(xas)
1093  否则如果xa_node恒等于XAS_RESTART
1094  entry等于xas_load() - Load an entry from the XArray (advanced).*@xas: XArray operation state.* Usually walks the @xas to the appropriate state to load the entry* stored at xa_index. However, it will do nothing and return %NULL if*@xas is in an error state
1095  如果entryTrue if the pointer is something other than a node 则返回:entry
1097  否则如果非Bits remaining in each slot xa_offset不等于xa_index按位与XA_CHUNK_MASK的值则
1099  xa_offset等于xa_index减1按位与XA_CHUNK_MASK的值加1
1102  xas_advance(xas)
1104 xa_nodexa_index小于等于max循环
1107  xa_node等于Private
1108  继续下一循环
1111  entry等于Private
1112  如果Private
1113  xa_node等于Private
1114  xa_offset等于0
1115  继续下一循环
1117  如果entry且非xa_is_sibling() - Is the entry a sibling entry?*@entry: Entry retrieved from the XArray* Return: %true if the entry is a sibling entry.则返回:entry
1120  xas_advance(xas)
1123  如果非xa_nodexa_node等于XAS_BOUNDS
1125  返回:NULL
调用者
名称描述
xa_findxa_find() - Search the XArray for an entry.*@xa: XArray.*@indexp: Pointer to an index.*@max: Maximum index to search to.*@filter: Selection criterion.* Finds the entry in @xa which matches the @filter, and has the lowest
xa_find_afterxa_find_after() - Search the XArray for a present entry.*@xa: XArray.*@indexp: Pointer to an index.*@max: Maximum index to search to.*@filter: Selection criterion.* Finds the entry in @xa which matches the @filter and has the lowest
check_xas_retry
check_move_max
filemap_range_has_pagelemap_range_has_page - check if a page exists in range
xas_next_entryxas_next_entry() - Advance iterator to next present entry.*@xas: XArray operation state.*@max: Highest index to return.* xas_next_entry() is an inline function to optimise xarray traversal for* speed