函数逻辑报告 |
Source Code:mm\percpu.c |
Create Date:2022-07-27 15:50:58 |
Last Modify:2022-05-23 13:52:24 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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.
函数原型:static void pcpu_free_area(struct pcpu_chunk *chunk, int off)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct pcpu_chunk * | chunk | |
int | off |
1248 | lockdep_assert_held( & pcpu_lock) |
1249 | pcpu_stats_area_dealloc(chunk) |
1251 | oslot等于pcpu_chunk_slot(chunk) |
1253 | bit_off等于off除PCPU_MIN_ALLOC_SIZE |
1256 | end等于在内存区域中找到下一个设置位 |
1259 | bitmap_clear( allocation map , bit_off, bits) |
名称 | 描述 |
---|---|
pcpu_alloc | pcpu_alloc - the percpu allocator*@size: size of area to allocate in bytes*@align: alignment of area (max PAGE_SIZE)*@reserved: allocate from the reserved chunk if available*@gfp: allocation flags* Allocate percpu area of @size bytes aligned at @align |
free_percpu | 释放内存 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |