函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Starts a walk. If the @xas is already valid, we assume that it's on* the right path and just return where we've got to. If we're in an* error state, return NULL. If the index is outside the current scope

函数原型:static void *xas_start(struct xa_state *xas)

返回类型:void

参数:

类型参数名称
struct xa_state *xas
183  如果xas_valid() - Is the xas a valid cursor into the array?*@xas: XArray operation state.* Return: %true if the xas can be used for operations.则返回:xas_reload() - Refetch an entry from the xarray
185  如果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.则返回:NULL
188  entry等于Private
189  如果非Private
190  如果xa_index则返回:set_bounds(xas)
192  否则
193  如果xa_index右移Bits remaining in each slot 位大于XA_CHUNK_MASK则返回:set_bounds(xas)
197  xa_node = NULL
198  返回:entry
调用者
名称描述
xas_loadxas_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
xas_find_conflictxas_find_conflict() - Find the next present entry in a range.*@xas: XArray operation state.* The @xas describes both a range and a position within that range.* Context: Any context. Expects xa_lock to be held.
xa_get_markxa_get_mark() - Inquire whether this mark is set on this entry.*@xa: XArray.*@index: Index of entry.*@mark: Mark number.* This function uses the RCU read lock, so the result may be out of date* by the time it returns