函数逻辑报告 |
Source Code:lib\radix-tree.c |
Create Date:2022-07-27 07:10:17 |
Last Modify:2022-05-21 10:04:37 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Extend a radix tree so it can store key @index.
函数原型:static int radix_tree_extend(struct xarray *root, gfp_t gfp, unsigned long index, unsigned int shift)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct xarray * | root | |
gfp_t | gfp | |
unsigned long | index | |
unsigned int | shift |
431 | 如果非entry且非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.)的值则转到:out |
434 | 循环 |
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 | 否则 |
448 | 以tag小于RADIX_TREE_MAX_TAGS循环 |
454 | BUG_ON(shift > BITS_PER_LONG) |
455 | 如果radix_tree_is_internal_node(entry)则 |
456 | NULL at top of tree 等于node |
459 | nr_values等于1 |
466 | entry等于node_to_entry(node) |
470 | out : |
名称 | 描述 |
---|---|
__radix_tree_create | |
idr_get_free |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |