函数逻辑报告 |
Source Code:kernel\kexec_file.c |
Create Date:2022-07-27 12:05:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:kimage_file_alloc_init
函数原型:static int kimage_file_alloc_init(struct kimage **rimage, int kernel_fd, int initrd_fd, const char __user *cmdline_ptr, unsigned long cmdline_len, unsigned long flags)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kimage ** | rimage | |
int | kernel_fd | |
int | initrd_fd | |
const char __user * | cmdline_ptr | |
unsigned long | cmdline_len | |
unsigned long | flags |
322 | image等于do_kimage_alloc_init() |
328 | 如果kexec_on_panic则 |
334 | ret等于In file mode list of segments is prepared by kernel. Copy relevant* data from user space, do error checking, prepare segment list |
336 | 如果ret则转到:out_free_image |
340 | 如果ret则转到:out_free_post_load_bufs |
346 | 如果非control_code_page则 |
347 | 打印错误信息("Could not allocate control_code_buffer\n") |
348 | 转到:out_free_post_load_bufs |
351 | 如果非kexec_on_panic则 |
352 | swap_page等于kimage_alloc_control_pages(image, 0) |
353 | 如果非swap_page则 |
354 | 打印错误信息("Could not allocate swap buffer\n") |
355 | 转到:out_free_control_pages |
360 | 返回:0 |
361 | out_free_control_pages : |
362 | kimage_free_page_list( & control_pages) |
363 | out_free_post_load_bufs : |
365 | out_free_image : |
367 | 返回:ret |
名称 | 描述 |
---|---|
SYSCALL_DEFINE5 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |