Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\decompress.c Create Date:2022-07-28 06:14:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:decompress_method

Proto:decompress_fn __init decompress_method(const unsigned char *inbuf, long len, const char **name)

Type:decompress_fn

Parameter:

TypeParameterName
const unsigned char *inbuf
longlen
const char **name
63  If len < 2 Then
64  If name Then * name = NULL
66  Return NULL
69  pr_debug("Compressed data magic: %#.2x %#.2x\n", inbuf[0], inbuf[1])
71  When name cycle
72  If Not memcmp(inbuf, magic, 2) Then Break
76  If name Then name = name
78  Return decompressor
Caller
NameDescribe
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