Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\decompress_unlzo.c Create Date:2022-07-28 06:17:33
Last Modify:2020-03-15 22:52:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:parse_header

Proto:STATIC inline long __attribute__((__section__(".init.text"))) __attribute__((__cold__))parse_header(u8 *input, long *skip, long in_len)

Type:long

Parameter:

TypeParameterName
u8 *input
long *skip
longin_len
44  parse = input
45  end = input + in_len
46  level = 0
54  If in_len < HEADER_SIZE_MIN Then Return 0
58  When l < 9 cycle
59  If parse++ != lzop_magic[l] Then Return 0
65  version = get_unaligned_be16(parse)
66  parse += 7
67  If version >= 0x0940 Then level = parse++
69  If get_unaligned_be32(parse) & HEADER_HAS_FILTER Then parse += 8
71  Else parse += 4
80  If end - parse < 8 + 1 + 4 Then Return 0
84  parse += 8
85  If version >= 0x0940 Then parse += 4
88  l = parse++
90  If end - parse < l + 4 Then Return 0
92  parse += l + 4
94  skip = parse - input
95  Return 1
Caller
NameDescribe
unlzo