Function report |
Source Code:lib\radix-tree.c |
Create Date:2022-07-28 06:12:58 |
| Last Modify:2022-05-21 10:04:37 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Extend a radix tree so it can store key @index.
Proto:static int radix_tree_extend(struct xarray *root, gfp_t gfp, unsigned long index, unsigned int shift)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct xarray * | root | |
| gfp_t | gfp | |
| unsigned long | index | |
| unsigned int | shift |
| 431 | If Not entry && ( Not is_idr(root) || root_tag_get(root, The IDR API does not expose the tagging functionality of the radix tree* to users. Use tag 0 to track whether a node has free space below it.)) Then Go to out |
| 434 | Do |
| 435 | node = This assumes that the caller has performed appropriate preallocation, and* that the caller has pinned this thread of control to the current CPU. |
| 441 | all_tag_set(node, The IDR API does not expose the tagging functionality of the radix tree* to users. Use tag 0 to track whether a node has free space below it.) |
| 446 | Else |
| 448 | When tag < RADIX_TREE_MAX_TAGS cycle |
| 454 | BUG_ON(shift > BITS_PER_LONG) |
| 455 | If radix_tree_is_internal_node(entry) Then |
| 456 | NULL at top of tree = node |
| 459 | nr_values = 1 |
| 466 | entry = node_to_entry(node) |
| 470 | out : |
| 471 | Return maxshift + adix-tree API starts here ** |
| Name | Describe |
|---|---|
| __radix_tree_create | |
| idr_get_free |
| 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 |