函数逻辑报告 |
Source Code:mm\percpu.c |
Create Date:2022-07-27 15:50:36 |
Last Modify:2022-05-23 13:52:24 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:pcpu_block_update_hint_alloc - update hint on allocation path*@chunk: chunk of interest*@bit_off: chunk offset*@bits: size of request* Updates metadata for the allocation path. The metadata only has to be
函数原型:static void pcpu_block_update_hint_alloc(struct pcpu_chunk *chunk, int bit_off, int bits)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct pcpu_chunk * | chunk | |
int | bit_off | |
int | bits |
788 | nr_empty_pages等于0 |
800 | e_index等于pcpu_off_to_block_index(bit_off + bits - 1) |
802 | e_off等于pcpu_off_to_block_off(bit_off + bits - 1)加1 |
804 | s_block等于 metadata blocks 加s_index |
805 | e_block等于 metadata blocks 加e_index |
837 | 否则 |
839 | size of free space alongthe left side of the block 等于两数取小(size of free space alongthe left side of the block , s_off) |
862 | 如果e_off恒等于PCPU_BITMAP_BLOCK_BITS则 |
864 | e_block自加 |
865 | 否则 |
873 | 否则 |
881 | nr_empty_pages加等于e_index减s_index减1 |
名称 | 描述 |
---|---|
pcpu_alloc_area | pcpu_alloc_area - allocates an area from a pcpu_chunk*@chunk: chunk of interest*@alloc_bits: size of request in allocation units*@align: alignment of area (max PAGE_SIZE)*@start: bit_off to start searching* This function takes in a @start offset to begin |
pcpu_alloc_first_chunk | pcpu_alloc_first_chunk - creates chunks that serve the first chunk*@tmp_addr: the start of the region served*@map_size: size of the region served* This is responsible for creating the chunks that serve the first chunk |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |