函数逻辑报告 |
Source Code:init\initramfs.c |
Create Date:2022-07-27 15:17:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:unpack_to_rootfs
函数原型:static char *__init unpack_to_rootfs(char *buf, unsigned long len)
返回类型:char
参数:
类型 | 参数 | 名称 |
---|---|---|
char * | buf | |
unsigned long | len |
449 | static __initdata char msg_buf[64] |
451 | header_buf等于开辟内存 |
452 | symlink_buf等于开辟内存 |
455 | 如果非header_buf或非symlink_buf或非name_buf则panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns. |
459 | this_header等于0 |
460 | message = NULL |
462 | saved_offset等于this_header |
463 | 如果buf恒等于'0'且非this_header按位与3的值则 |
465 | written等于write_buffer(buf, len) |
468 | 继续下一循环 |
470 | 如果非buf则 |
476 | this_header等于0 |
477 | decompress等于decompress_method(buf, len, & compress_name) |
478 | pr_debug("Detected %s compressed data\n", compress_name) |
479 | 如果decompress则 |
480 | res等于decompress(buf, len, NULL, flush_buffer, NULL, & dex of next byte to be processed in inbuf , error) |
484 | 否则如果compress_name则 |
485 | 如果非message则 |
491 | 否则error("invalid magic at start of compressed archive") |
499 | dir_utime() |
500 | 释放内存 |
501 | 释放内存 |
502 | 释放内存 |
503 | 返回:message |
名称 | 描述 |
---|---|
populate_rootfs |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |