函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:xz_dec_run() is a wrapper for dec_main() to handle some special cases in* multi-call and single-call decoding.* In multi-call mode, we must return XZ_BUF_ERROR when it seems clear that we* are not going to make any progress anymore

函数原型:enum xz_ret xz_dec_run(struct xz_dec *s, struct xz_buf *b)

返回类型:enum xz_ret

参数:

类型参数名称
struct xz_dec *s
struct xz_buf *b
756  如果The DEC_IS_foo(mode) macros are used in "if" statements. If only some* of the supported modes are enabled, these macros will evaluate to true or* false at compile time and thus allow the compiler to omit unneeded code.( Operation mode )则xz_dec_reset(s)
759  in_start等于in_pos
760  out_start等于out_pos
761  ret等于dec_main(s, b)
763  如果The DEC_IS_foo(mode) macros are used in "if" statements. If only some* of the supported modes are enabled, these macros will evaluate to true or* false at compile time and thus allow the compiler to omit unneeded code.( Operation mode )则
764  如果ret恒等于XZ_OKret等于如果in_pos恒等于in_sizeXZ_DATA_ERROR否则XZ_BUF_ERROR
768  如果ret不等于XZ_STREAM_END
769  in_pos等于in_start
770  out_pos等于out_start
773  否则如果ret恒等于XZ_OKin_start恒等于in_posout_start恒等于out_pos
775  如果* True if the next call to xz_dec_run() is allowed to return * XZ_BUF_ERROR.ret等于XZ_BUF_ERROR
778  * True if the next call to xz_dec_run() is allowed to return * XZ_BUF_ERROR. = true
779  否则
780  * True if the next call to xz_dec_run() is allowed to return * XZ_BUF_ERROR. = false
783  返回:ret
调用者
名称描述
unxzThis function implements the API defined in .* This wrapper will automatically choose single-call or multi-call mode* of the native XZ decoder API. The single-call mode can be used only when
xz_dec_test_writeDecode the data given to us from the userspace. CRC32 of the uncompressed* data is calculated and is printed at the end of successful decoding. The* uncompressed data isn't stored anywhere for further use.* The