函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:xz_dec_lzma2_create

函数原型:struct xz_dec_lzma2 *xz_dec_lzma2_create(enum xz_mode mode, uint32_t dict_max)

返回类型:struct xz_dec_lzma2

参数:

类型参数名称
enum xz_modemode
uint32_tdict_max
1111  s等于kmalloc(s的长度, GFP_KERNEL)
1112  如果(s == NULL)则返回:NULL
1115  Operation mode 等于mode
1116  Maximum allowed dictionary size in multi-call mode.* This is ignored in single-call mode.等于dict_max
1118  如果DEC_IS_PREALLOC(mode)则
1119  Beginning of the history buffer 等于vmalloc(dict_max)
1120  如果(Beginning of the history buffer == NULL)则
1121  kfree(s)
1122  返回:NULL
1124  否则如果DEC_IS_DYNALLOC(mode)则
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  返回:s
调用者
名称描述
xz_dec_init