函数逻辑报告 |
Source Code:mm\percpu.c |
Create Date:2022-07-27 15:52:05 |
Last Modify:2022-05-23 13:52:24 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:per_cpu_ptr_to_phys - convert translated percpu address to physical address*@addr: the address to be converted to physical address* Given @addr which is dereferenceable address obtained via one of* percpu access macros, this function translates it into
函数原型:phys_addr_t per_cpu_ptr_to_phys(void *addr)
返回类型:phys_addr_t
参数:
类型 | 参数 | 名称 |
---|---|---|
void * | addr |
2063 | __percpu乘base等于 UP, it's always identity mapped (he address of the first chunk which starts with the kernel static area ) |
2064 | bool in_first_chunk = false |
2078 | first_low等于he address of the first chunk which starts with the kernel static area 加pcpu_unit_page_offset(cpus with the lowest and highest unit addresses , 0) |
2080 | first_high等于he address of the first chunk which starts with the kernel static area 加pcpu_unit_page_offset(pcpu_high_unit_cpu, pcpu_unit_pages) |
2082 | 如果addr大于等于first_low且addr小于first_high则 |
2085 | start等于per_cpu_ptr(base, cpu) |
2087 | 如果addr大于等于start且addr小于start加pcpu_unit_size则 |
2088 | in_first_chunk = true |
2089 | 退出 |
2094 | 如果in_first_chunk则 |
名称 | 描述 |
---|---|
crash_prepare_elf64_headers | |
get_cpu_gdt_paddr | Provide the physical address of the GDT page. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |