函数逻辑报告 |
Source Code:mm\percpu.c |
Create Date:2022-07-27 15:50:43 |
Last Modify:2022-05-23 13:52:24 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:pcpu_block_update_hint_free - updates the block hints on the free path*@chunk: chunk of interest*@bit_off: chunk offset*@bits: size of request* Updates metadata for the allocation path. This avoids a blind block
函数原型:static void pcpu_block_update_hint_free(struct pcpu_chunk *chunk, int bit_off, int bits)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct pcpu_chunk * | chunk | |
int | bit_off | |
int | bits |
934 | nr_empty_pages等于0 |
947 | e_index等于pcpu_off_to_block_index(bit_off + bits - 1) |
949 | e_off等于pcpu_off_to_block_off(bit_off + bits - 1)加1 |
951 | s_block等于 metadata blocks 加s_index |
952 | e_block等于 metadata blocks 加e_index |
967 | 否则 |
980 | 如果e_off恒等于lock relative startingposition of the contig hint 则end等于lock relative startingposition of the contig hint 加contig hint for block |
982 | 否则end等于在内存区域中找到下一个设置位 |
987 | e_off等于如果s_index恒等于e_index则end否则PCPU_BITMAP_BLOCK_BITS |
988 | 如果非start且e_off恒等于PCPU_BITMAP_BLOCK_BITS则nr_empty_pages自加 |
995 | 如果end恒等于PCPU_BITMAP_BLOCK_BITS则nr_empty_pages自加 |
1000 | nr_empty_pages加等于e_index减s_index减1 |
1002 | lock position of first free 等于0 |
1003 | scan hint for block 等于0 |
名称 | 描述 |
---|---|
pcpu_free_area | pcpu_free_area - frees the corresponding offset*@chunk: chunk of interest*@off: addr offset into chunk* This function determines the size of an allocation to free using* the boundary bitmap and clears the allocation map. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |