Function report |
Source Code:lib\xarray.c |
Create Date:2022-07-28 06:13:30 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:xas_find() - Find the next present entry in the XArray
Proto:void *xas_find(struct xa_state *xas, unsigned long max)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct xa_state * | xas | |
| unsigned long | max |
| 1087 | If xa_index > max Then Return set_bounds(xas) |
| 1090 | If Not xa_node Then |
| 1091 | xa_index = 1 |
| 1092 | Return set_bounds(xas) |
| 1093 | Else if xa_node == XAS_RESTART Then |
| 1095 | If entry || True if the pointer is something other than a node Then Return entry |
| 1097 | Else if Not Bits remaining in each slot && xa_offset != (xa_index & XA_CHUNK_MASK) Then |
| 1099 | xa_offset = ( xa_index - 1 & XA_CHUNK_MASK) + 1 |
| 1102 | xas_advance(xas) |
| 1112 | If Private Then |
| 1117 | If entry && Not xa_is_sibling() - Is the entry a sibling entry?*@entry: Entry retrieved from the XArray* Return: %true if the entry is a sibling entry. Then Return entry |
| 1120 | xas_advance(xas) |
| 1123 | If Not xa_node Then xa_node = XAS_BOUNDS |
| 1125 | Return NULL |
| Name | Describe |
|---|---|
| xa_find | xa_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_after | xa_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 | |
| xas_next_entry | xas_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 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |