Function report | 
Source Code:lib\xarray.c | 
Create Date:2022-07-28 06:13:22 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:xas_alloc
Proto:static void *xas_alloc(struct xa_state *xas, unsigned int shift)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct xa_state * | xas | |
| unsigned int | shift | 
| 360 | If xas_invalid() - Is the xas in a retry or error state?*@xas: XArray operation state.* Return: %true if the xas cannot be used for operations. Then Return NULL | 
| 363 | If node Then | 
| 364 | xa_alloc = NULL | 
| 365 | Else | 
| 368 | If private: The rest of the data structure is not to be used directly. & XA_FLAGS_ACCOUNT Then gfp |= __GFP_ACCOUNT | 
| 372 | If Not node Then | 
| 378 | If parent Then | 
| 380 | Total entry count ++ | 
| 382 | xas_update(xas, parent) | 
| 384 | XA_NODE_BUG_ON(node, shift > BITS_PER_LONG) | 
| 387 | Total entry count = 0 | 
| 388 | Value entry count = 0 | 
| 390 | The array we belong to = xa | 
| 392 | Return node | 
| Name | Describe | 
|---|---|
| xas_expand | xas_expand adds nodes to the head of the tree until it has reached* sufficient height to be able to contain @xas->xa_index | 
| xas_create | xas_create() - Create a slot to store an entry in.*@xas: XArray operation state.*@allow_root: %true if we can store the entry in the root directly* Most users will not need to call this function directly, as it is called* by xas_store() | 
| 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  |