Function report |
Source Code:security\apparmor\policy_unpack.c |
Create Date:2022-07-28 19:52:16 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:deflate_compress
Proto:static int deflate_compress(const char *src, size_t slen, char **dst, size_t *dlen)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const char * | src | |
| size_t | slen | |
| char ** | dst | |
| size_t * | dlen |
| 1054 | stglen = This function is equivalent to deflateEnd followed by deflateInit,but does not free and reallocate all the internal compression state |
| 1061 | memory allocated for this stream = kvzalloc(zlib_deflate_workspacesize(32K LZ77 window , Maximum value for memLevel in deflateInit2 ), GFP_KERNEL) |
| 1064 | If Not memory allocated for this stream Then Return -ENOMEM |
| 1067 | error = This function adds the data at next_in (avail_in bytes) to the outputhistory without performing any output( & strm, aa_g_rawdata_compression_level) |
| 1070 | Go to fail_deflate_init |
| 1073 | stgbuf = kvzalloc(stglen, GFP_KERNEL) |
| 1074 | If Not stgbuf Then |
| 1076 | Go to fail_stg_alloc |
| 1079 | next input byte = src |
| 1084 | error = zlib_deflate( & strm, Z_FINISH) |
| 1085 | If error != Z_STREAM_END Then |
| 1087 | Go to fail_deflate |
| 1089 | error = 0 |
| 1105 | If Not dstbuf Then |
| 1107 | Go to fail_deflate |
| 1113 | fail_stg_alloc : |
| 1114 | zlib_deflateEnd( & strm) |
| 1115 | fail_deflate_init : |
| 1117 | Return error |
| 1119 | fail_deflate : |
| 1121 | Go to fail_stg_alloc |
| Name | Describe |
|---|---|
| compress_loaddata |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |