函数逻辑报告 |
Source Code:mm\percpu.c |
Create Date:2022-07-27 15:52:13 |
Last Modify:2022-05-23 13:52:24 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:pcpu_dump_alloc_info - print out information about pcpu_alloc_info*@lvl: loglevel*@ai: allocation info to dump* Print out information about @ai using loglevel @lvl.
函数原型:static void pcpu_dump_alloc_info(const char *lvl, const struct pcpu_alloc_info *ai)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
const char * | lvl | |
const struct pcpu_alloc_info * | ai |
2170 | group_width等于1, cpu_width等于1 |
2171 | empty_str[]等于"--------" |
2176 | v等于 0 if grouping unnecessary |
2178 | group_width自加 |
2180 | v等于num_possible_cpus() |
2182 | cpu_width自加 |
2183 | empty_str[min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, cpu_width, empty_str的长度 - 1)]等于'\0' |
2185 | upa等于alloc_size除unit_size |
2186 | width等于upa乘cpu_width加1的和加group_width加3 |
2193 | 以group小于 0 if grouping unnecessary 循环 |
2197 | BUG_ON( aligned # of units % upa) |
2201 | 打印标准信息("\n") |
2204 | 打印标准信息("[%0*d] ", group_width, group) |
2208 | 打印标准信息("%0*d ", cpu_width, unit->cpu map, empty * entries contain NR_CPUS [unit]) |
2214 | 打印标准信息("\n") |
名称 | 描述 |
---|---|
pcpu_setup_first_chunk | pcpu_setup_first_chunk - initialize the first percpu chunk*@ai: pcpu_alloc_info describing how to percpu area is shaped*@base_addr: mapped address* Initialize the first percpu chunk which contains the kernel static* percpu area |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |