Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\xarray.c Create Date:2022-07-28 06:13:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__xas_next() - Find the next entry in the XArray.*@xas: XArray operation state.* Helper function for xas_next() which handles all the complex cases* out of line.

Proto:void *__xas_next(struct xa_state *xas)

Type:void

Parameter:

TypeParameterName
struct xa_state *xas
1037  If Not True if the node represents RESTART or an error Then xa_index++
1039  If Not xa_node Then Return set_bounds(xas)
1041  If True if the pointer is something other than a node Then Return 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
1044  If xa_offset != xtracts the offset within this node from the index Then xa_offset++
1047  When xa_offset == XA_CHUNK_SIZE cycle
1048  xa_offset = Slot offset in parent + 1
1049  xa_node = Private
1050  If Not xa_node Then Return set_bounds(xas)
1054  cycle
1055  entry = Private
1056  If Not Private Then Return entry
1059  xa_node = Private
1060  xas_set_offset(xas)
Caller
NameDescribe
xas_nextxas_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,