Function report |
Source Code:kernel\power\snapshot.c |
Create Date:2022-07-28 10:00:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static int add_rtree_block(struct mem_zone_bm_rtree *zone, gfp_t gfp_mask, int safe_needed, struct chain_allocator *ca)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 | When i < levels_needed cycle |
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 | If Not node Then |
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 | Return 0 |
Name | Describe |
---|---|
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. |
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 |