函数逻辑报告 |
Source Code:kernel\kexec.c |
Create Date:2022-07-27 12:04:54 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:kimage_alloc_init
函数原型:static int kimage_alloc_init(struct kimage **rimage, unsigned long entry, unsigned long nr_segments, struct kexec_segment __user *segments, unsigned long flags)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kimage ** | rimage | |
unsigned long | entry | |
unsigned long | nr_segments | |
struct kexec_segment __user * | segments | |
unsigned long | flags |
48 | 如果kexec_on_panic则 |
50 | 如果entry小于phys_to_boot_phys(start)或entry大于phys_to_boot_phys(end)则返回:负EADDRNOTAVAIL |
56 | image等于do_kimage_alloc_init() |
63 | 如果ret则转到:out_free_image |
66 | 如果kexec_on_panic则 |
73 | 如果ret则转到:out_free_image |
84 | 如果非control_code_page则 |
85 | 打印错误信息("Could not allocate control_code_buffer\n") |
86 | 转到:out_free_image |
89 | 如果非kexec_on_panic则 |
90 | swap_page等于kimage_alloc_control_pages(image, 0) |
91 | 如果非swap_page则 |
92 | 打印错误信息("Could not allocate swap buffer\n") |
93 | 转到:out_free_control_pages |
98 | 返回:0 |
100 | kimage_free_page_list( & control_pages) |
101 | out_free_image : |
103 | 返回:ret |
名称 | 描述 |
---|---|
do_kexec_load |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |