| Function report | 
| Source Code: init\initramfs.c | Create Date:2022-07-28 13:54:57 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:unpack_to_rootfs
Proto:static char *__init unpack_to_rootfs(char *buf, unsigned long len)
Type:char
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| char * | buf | |
| unsigned long | len | 
| 449 | static __initdata char msg_buf[64] | 
| 451 | header_buf = Allocation memory | 
| 452 | symlink_buf = Allocation memory | 
| 453 | name_buf = Allocation memory | 
| 455 | If Not header_buf || Not symlink_buf || Not name_buf Then 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 | If buf == '0' && Not (this_header & 3) Then | 
| 465 | written = write_buffer(buf, len) | 
| 468 | Continue | 
| 470 | If Not buf Then | 
| 476 | this_header = 0 | 
| 477 | decompress = decompress_method(buf, len, & compress_name) | 
| 478 | pr_debug("Detected %s compressed data\n", compress_name) | 
| 479 | If decompress Then | 
| 480 | res = decompress(buf, len, NULL, flush_buffer, NULL, & dex of next byte to be processed in inbuf , error) | 
| 484 | Else if compress_name Then | 
| 485 | If Not message Then | 
| 491 | Else error("invalid magic at start of compressed archive") | 
| 499 | dir_utime() | 
| 503 | Return message | 
| Name | Describe | 
|---|---|
| populate_rootfs | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |