函数逻辑报告 |
Source Code:mm\percpu.c |
Create Date:2022-07-27 15:50:55 |
Last Modify:2022-05-23 13:52:24 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static int pcpu_alloc_area(struct pcpu_chunk *chunk, int alloc_bits, size_t align, int start)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct pcpu_chunk * | chunk | |
int | alloc_bits | |
size_t | align | |
int | start |
1190 | align_mask等于如果align则align减1否则0 |
1194 | lockdep_assert_held( & pcpu_lock) |
1196 | oslot等于pcpu_chunk_slot(chunk) |
1212 | bitmap_set( allocation map , bit_off, alloc_bits) |
1215 | 设置内存位 |
1216 | bitmap_clear( boundary map , bit_off + 1, alloc_bits - 1) |
1217 | 设置内存位 |
1232 | 返回:bit_off乘PCPU_MIN_ALLOC_SIZE |
名称 | 描述 |
---|---|
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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |