函数逻辑报告 |
Source Code:kernel\power\snapshot.c |
Create Date:2022-07-27 11:00:30 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:add_rtree_block - Add a new leave node to the radix tree.* The leave nodes need to be allocated in order to keep the leaves* linked list in order. This is guaranteed by the zone->blocks* counter.
函数原型:static int add_rtree_block(struct mem_zone_bm_rtree *zone, gfp_t gfp_mask, int safe_needed, struct chain_allocator *ca)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct mem_zone_bm_rtree * | zone | |
gfp_t | gfp_mask | |
int | safe_needed | |
struct chain_allocator * | ca |
436 | levels_needed等于0 |
440 | levels_needed加等于1 |
441 | block_nr右移等于BM_RTREE_LEVEL_SHIFT位 |
445 | 以i小于levels_needed循环 |
451 | data[0]等于Radix Tree Root |
452 | Radix Tree Root 等于node |
453 | Number of Radix Tree Levels 加等于1 |
462 | node等于Radix Tree Root |
463 | dst等于Radix Tree Root |
468 | 如果非node则 |
476 | index等于block_nr右移i减1的差乘BM_RTREE_LEVEL_SHIFT位 |
477 | index与等于BM_RTREE_LEVEL_MASK |
478 | dst = (struct rtree_node * * ) & (data[index]) |
482 | Number of Bitmap Blocks 加等于1 |
485 | 返回:0 |
名称 | 描述 |
---|---|
create_zone_bm_rtree | reate_zone_bm_rtree - Create a radix tree for one zone.* Allocated the mem_zone_bm_rtree structure and initializes it.* This function also allocated and builds the radix tree for the* zone. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |