Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:xz_dec_lzma2_create

Proto:struct xz_dec_lzma2 *xz_dec_lzma2_create(enum xz_mode mode, uint32_t dict_max)

Type:struct xz_dec_lzma2

Parameter:

TypeParameterName
enum xz_modemode
uint32_tdict_max
1111  s = kmalloc( size of s , GFP_KERNEL)
1112  If (s == NULL) Then Return NULL
1115  Operation mode = mode
1116  Maximum allowed dictionary size in multi-call mode.* This is ignored in single-call mode. = dict_max
1118  If DEC_IS_PREALLOC(mode) Then
1119  Beginning of the history buffer = vmalloc(dict_max)
1120  If (Beginning of the history buffer == NULL) Then
1121  kfree(s)
1122  Return NULL
1124  Else if DEC_IS_DYNALLOC(mode) Then
1125  Beginning of the history buffer = NULL
1126  Amount of memory currently allocated for the dictionary.* This is used only with XZ_DYNALLOC. (With XZ_PREALLOC,* size_max is always the same as the allocated size.) = 0
1129  Return s
Caller
NameDescribe
xz_dec_init