函数逻辑报告 |
Source Code:mm\cma.c |
Create Date:2022-07-27 18:07:04 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:ma_init_reserved_mem() - create custom contiguous area from reserved memory*@base: Base address of the reserved area*@size: Size of the reserved area (in bytes),*@order_per_bit: Order of pages represented by one bit on bitmap.*@name: The name of the area
函数原型:int __init cma_init_reserved_mem(phys_addr_t base, phys_addr_t size, unsigned int order_per_bit, const char *name, struct cma **res_cma)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| phys_addr_t | base | |
| phys_addr_t | size | |
| unsigned int | order_per_bit | |
| const char * | name | |
| struct cma ** | res_cma |
| 186 | 如果非size或非memblock_is_region_reserved(base, size)则返回:负EINVAL |
| 194 | 如果非IS_ALIGNED(alignment >> PAGE_SHIFT determines the page size , 1 << order_per_bit)则返回:负EINVAL |
| 197 | 如果@a is a power of 2 value (base, alignment)不等于base或@a is a power of 2 value (size, alignment)不等于size则返回:负EINVAL |
| 204 | cma等于cma_areas[cma_area_count] |
| 205 | 如果name则 |
| 207 | 否则 |
| 208 | name等于kasprintf(GFP_KERNEL, "cma%d\n", cma_area_count) |
| 216 | cma_area_count自加 |
| 217 | totalcma_pages加等于size除PAGE_SIZE |
| 219 | 返回:0 |
| 名称 | 描述 |
|---|---|
| cma_declare_contiguous | ma_declare_contiguous() - reserve custom contiguous area*@base: Base address of the reserved area optional, use 0 for any*@size: Size of the reserved area (in bytes),*@limit: End address of the reserved memory (optional, 0 for any) |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |