函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\decompress.c Create Date:2022-07-27 07:11:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:decompress_method

函数原型:decompress_fn __init decompress_method(const unsigned char *inbuf, long len, const char **name)

返回类型:decompress_fn

参数:

类型参数名称
const unsigned char *inbuf
longlen
const char **name
63  如果len小于2则
64  如果name则 * name = NULL
66  返回:NULL
69  pr_debug("Compressed data magic: %#.2x %#.2x\n", inbuf[0], inbuf[1])
71 name循环
72  如果非memcmp(inbuf, magic, 2)则退出
76  如果namename等于name
78  返回:decompressor
调用者
名称描述
identify_ramdisk_imageThis routine tries to find a RAM disk image to load, and returns the* number of blocks to read for a non-compressed image, 0 if the image* is a compressed image, and -1 if an image with the right magic* numbers could not be found
unpack_to_rootfs