Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:void *__xas_prev(struct xa_state *xas)

Type:void

Parameter:

TypeParameterName
struct xa_state *xas
998  If Not True if the node represents RESTART or an error Then xa_index--
1000  If Not xa_node Then Return set_bounds(xas)
1002  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
1005  If xa_offset != xtracts the offset within this node from the index Then xa_offset--
1008  When xa_offset == 255 cycle
1009  xa_offset = Slot offset in parent - 1
1010  xa_node = Private
1011  If Not xa_node Then Return set_bounds(xas)
1015  cycle
1016  entry = Private
1017  If Not Private Then Return entry
1020  xa_node = Private
1021  xas_set_offset(xas)
Caller
NameDescribe
xas_prevxas_prev() - Move iterator to previous 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,