函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Undo burrows-wheeler transform on intermediate buffer to produce output.If start_bunzip was initialized with out_fd =-1, then up to len bytes ofdata are written to outbuf. Return value is number of bytes written orerror (all errors are negative numbers)

函数原型:static int __attribute__((__section__(".init.text"))) __attribute__((__cold__))read_bunzip(struct bunzip_data *bd, char *outbuf, int len)

返回类型:int

参数:

类型参数名称
struct bunzip_data *bd
char *outbuf
intlen
529  如果State for interrupting output loop 小于0则返回:State for interrupting output loop
532  gotcount等于0
533  dbuf等于Intermediate buffer and its size (in bytes)
534  pos等于State for interrupting output loop
535  xcurrent等于State for interrupting output loop
541  如果State for interrupting output loop
543  State for interrupting output loop 先自减
545  循环
548  如果gotcount大于等于len
555  outbuf[gotcount++]等于xcurrent
563  继续下一循环
570  previous等于xcurrent
571  pos等于dbuf[pos]
572  xcurrent等于pos按位与0xff
573  pos右移等于8位
578  如果State for interrupting output loop 先自减则
581  否则
597  The CRC values stored in the block header and calculated from thedata 等于The CRC values stored in the block header and calculated from thedata 的反
598  The CRC values stored in the block header and calculated from thedata 等于The CRC values stored in the block header and calculated from thedata 左移1位按位或The CRC values stored in the block header and calculated from thedata 右移31位的值按位异或The CRC values stored in the block header and calculated from thedata
603  返回:RETVAL_LAST_BLOCK
610  previous等于Unpacks the next block and sets up for the inverse burrows-wheeler step.
611  如果previous
612  State for interrupting output loop 等于previous
613  返回:如果previous不等于RETVAL_LAST_BLOCKprevious否则gotcount
615  The CRC values stored in the block header and calculated from thedata 等于0xffffffffUL
616  pos等于State for interrupting output loop
617  xcurrent等于State for interrupting output loop
618  转到:decode_next_byte
调用者
名称描述
bunzip2Example usage: decompress src_fd to dst_fd. (Stops at end of bzip2 data,not end of file.)