Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:enum xz_ret xz_dec_run(struct xz_dec *s, struct xz_buf *b)

Type:enum xz_ret

Parameter:

TypeParameterName
struct xz_dec *s
struct xz_buf *b
756  If 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 ) Then xz_dec_reset(s)
759  in_start = in_pos
760  out_start = out_pos
761  ret = dec_main(s, b)
763  If 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 ) Then
764  If ret == XZ_OK Then ret = If in_pos == in_size Then XZ_DATA_ERROR Else XZ_BUF_ERROR
768  If ret != XZ_STREAM_END Then
769  in_pos = in_start
770  out_pos = out_start
773  Else if ret == XZ_OK && in_start == in_pos && out_start == out_pos Then
775  If * True if the next call to xz_dec_run() is allowed to return * XZ_BUF_ERROR. Then ret = XZ_BUF_ERROR
778  * True if the next call to xz_dec_run() is allowed to return * XZ_BUF_ERROR. = true
779  Else
780  * True if the next call to xz_dec_run() is allowed to return * XZ_BUF_ERROR. = false
783  Return ret
Caller
NameDescribe
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