Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\apparmorfs.c Create Date:2022-07-28 19:50:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:deflate_decompress

Proto:static int deflate_decompress(char *src, size_t slen, char *dst, size_t dlen)

Type:int

Parameter:

TypeParameterName
char *src
size_tslen
char *dst
size_tdlen
1332  If aa_g_rawdata_compression_level == 0 Then
1333  If dlen < slen Then Return -EINVAL
1335  memcpy(dst, src, slen)
1336  Return 0
1339  memset( & strm, 0, size of strm )
1341  memory allocated for this stream = kvzalloc(zlib_inflate_workspacesize(), GFP_KERNEL)
1342  If Not memory allocated for this stream Then Return -ENOMEM
1345  next input byte = src
1346  number of bytes available at next_in = slen
1348  error = zlib_inflateInit( & strm)
1349  If error != Allowed flush values; see deflate() and inflate() below for details Then
1350  error = -ENOMEM
1351  Go to fail_inflate_init
1354  next output byte should be put there = dst
1355  remaining free space at next_out = dlen
1357  error = late() uses a state machine to process as much input data and generate asmuch output data as possible before returning
1358  If error != Z_STREAM_END Then error = -EINVAL
1360  Else error = 0
1363  zlib_inflateEnd( & strm)
1364  fail_inflate_init :
1365  kvfree() - Free memory.*@addr: Pointer to allocated memory.* kvfree frees memory allocated by any of vmalloc(), kmalloc() or kvmalloc().* It is slightly more efficient to use kfree() or vfree() if you are certain* that you know which one to use.
1366  Return error
Caller
NameDescribe
rawdata_open